Magento is an open-source e-commerce platform that empowers businesses to establish a robust online presence. It provides tools and features for managing online stores, customizing storefronts, and scaling businesses effectively.
To enhance your e-commerce experience, the Xendit Plugins, available on the Magento Marketplace, enables online payment integration for your Magento store. With a few simple configurations, you can accept a wide range of payment methods through Xendit.
Follow this guideline to start integrating Xendit with your Magento store.
Requirements
Before installing the Xendit Payments Extension into your Magento store, please ensure that all the requirements below are completed:
Magento Enterprise Edition or Magento Community Edition
Magento version at 2.2.5 or above
PHP 7.0.33 or above
Installation
Configuration on Xendit Dashboard
Here are steps that you need to do in Integrating with Xendit:
Register or sign in on Xendit
Get your API Key from your Xendit Dashboard
Go to Settings menu
Click on API Key in Developers Section
Click Generate Secret Key
Click write on money - in
Click none on money - out
Click Generate Key, then you will get your API Key that you can copy it later to integrate Xendit with your Magento store
Installation of Xendit Extension
There are two types of installations that available for you to use Xendit as your payment gateway, which are:
Get Xendit extension from Magento Marketplace via composer
Download and unzip Xendit Payments extension manually
Get Xendit Extension from Magento Marketplace Via Composer
Please follow these steps to use Xendit as your payment on Magento:
Download the Xendit Payment Extension from Magento Marketplace
Go to the setting page by navigating to Stores -> Configuration -> Sales -> Payment Method
Copy Xendit Public Key on Xendit Dashboard to your Magento Payment Method Settings
Copy Xendit Secret Key on Xendit Dashboard to your Magento Payment Method Settings
Click Save
Once you save the settings and enable Xendit on the setting page, you should see Xendit's payment methods on payment section during checkout flow.
Download and Unzip Xendit Payments Extension Manually
Please follow these steps to integrate with Xendit:
Download and unzip extension source code
Copy the inner Xendit folder into your MAGENTO_DIR/app/code directory on your store's webserver. You may not have the code folder by default, you can proceed to create it manually.
Go to your MAGENTO_DIR, run these commands:
php bin/magento module:status. You should see Xendit_M2Invoice on list of disabled modules. php bin/magento module:enable Xendit_M2Invoice php bin/magento setup:upgrade Run php bin/magento module:status again to ensure Xendit_M2Invoice is enabled already. You should flush Magento cache by using php bin/magento cache:flush Compile Magento with newly added module by using php bin/magento setup:di:compile
Optional: Firewall Whitelisting
If you happen to use firewall, there's an optional step, which is to whitelist Xendit Callback URL in order to avoid unreceived callback:
Magento: <merchant_site>/xendit/checkout/notification
You can input the URL when creating firewall rules. Example below is the display if you're using Cloudflare: