Installation

How to Install

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:

  1. Get Xendit extension from Magento Marketplace via composer
  2. 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:

  1. Download the Xendit Payment Extension from Magento Marketplace
  2. Go to the setting page by navigating to Stores -> Configuration -> Sales -> Payment Method
  3. Copy Xendit Public Key on Xendit Dashboard to your Magento Payment Method Settings
  4. Copy Xendit Secret Key on Xendit Dashboard to your Magento Payment Method Settings
  5. Click Save
  6. 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:

  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

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:

Last Updated on 2023-11-29