logo
English
English
API ReferenceSign In

How to Integrate with Magento

Last updated 09/10/2019

There are two types of integrations that available for you to use Xendit as your payment gateway, there are:

  1. Download and unzip Xendit Payments extension manually
  2. Get Xendit extension from Magento Marketplace via composer

Download and Unzip Xendit Payments Extension Manually

Please follow these steps to integrate with Xendit:

  1. Download and unzip extension source code

  2. 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.

  3. Go to your MAGENTO_DIR, run these commands:

    1. php bin/magento module:status. You should see Xendit_M2Invoice on list of disabled modules.
    2. php bin/magento module:enable Xendit_M2Invoice
    3. php bin/magento setup:upgrade
    4. Run php bin/magento module:status again to ensure Xendit_M2Invoice is enabled already.
    5. You should flush Magento cache by using php bin/magento cache:flush
    6. Compile Magento with newly added module by using php bin/magento setup:di:compile

Get Xendit Extension from Magento Marketplace Via Composer

Please follow these steps to use Xendit as your payment on Magento M2:

  1. You can see Xendit's setting page by navigating to Stores -> Configuration -> Sales -> Payment Method

    1. Open your Xendit Dashboard in new tab and go to Settings, and then Security or you can open this link in new tab: https://dashboard.xendit.co/dashboard/settings/security. Please create an API key with money - in as WRITE and money - out as NONE
    2. Copy Xendit Public Key on Xendit Dashboard to your Magento Payment Method Settings
    3. Copy Xendit Secret Key on Xendit Dashboard to your Magento Payment Method Settings
    4. Click Save
  2. Once you save the settings above and enable Xendit on the setting page, you should see Xendit's payment methods (credit card and bank transfer) on payment section during checkout flow. Like screenshot below:

Was this page helpful?
Yes No