Skip to content

Magento Extension

What is Magento Extension

Magento extension is an extension to your store to have extra features from other parties like third party developer or other service provider. Magento extensions are available on Magento Marketplace. Magento extension is created to enable smoother experience for you as a merchant and your customer(s)

Currently Xendit on Magento Extension supports:

  • Bank Transfer - BNI through Virtual Account
  • Bank Transfer - BRI through Virtual Account
  • Bank Transfer - Mandiri through Virtual Account
  • Bank Transfer - Permata through Virtual Account
  • Credit Cards

With integrating with us, you are helping us in bringing better digital infrastructure on Indonesia

What to Prepare Before Integrating with Xendit on Magento

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

Requirement with Integrating with Us

  • Magento 2.2.5 or above
  • PHP 7.0.33 or above

How to Integrate

Please follow these steps to integrate with Xendit through PHP client:

  • Download and unzip plugin 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.
  • From 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
  • You can see Xendit's setting page by navigating to Stores -> Configuration -> Sales -> Payment Method alt text
    • Open your Xendit Dashboard in new tab and go to Settings, and then API Key or you can open this link in new tab: alt text
    • 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
    • Copy Xendit Validation Token on Xendit Dashboard to your Magento Payment Method Settings
    • Go back to Xendit Dashboard and go to Settings and then go to Configuration or you can simply click this link: alt text
    • Click invoice
    • Copy Your Callback URL on Xendit Payment Method Setting to Callback URLs in invoice settings
    • Copy it in both development and production
    • Click Save & Test Callback
  • 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: alt text