Magento 2 Alipay Cross Border Payment

Table of Content

  1. Extension Installation Guide
  2. Configuration
  3. Alipay Cross Border Payment in Frontend
  4. Alipay Cross Border Payment in Backend
  5. Alipay Payment Details in Order Email


  1. Extension Installation
  • Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
  • Login to your SSH and run below commands step by step:
    • php bin/magento setup:upgrade
    • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
    • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy -f
    • php bin/magento cache:flush
  • That’s it.


  1. Configuration
    For configuring the extension, log in to Magento 2, move to Sales > Payments Method where you can find various settings to enable the extension.
  • Enabled: Set “YES” to enable the payment method.
  • Title: Set the title for the payment method to be displayed in the frontend.
  • Sandbox mode: Set “YES” to enable the sandbox mode for testing purpose.
  • Partner ID: Add partner ID received while registration with Alipay.
  • Partner Secret Key: Add partner secret key received while registration with Alipay.
  • Additional Information: You can add any information related to payment method here to show in frontend.
  • Sort Order: Enter Sort Order for the payment method display.



  1. Alipay Cross Border Payment in Frontend
    Once the extension is configured properly, when customers add a product to cart and proceed to checkout, the Alipay payment method can be seen enabled in the frontend.


  • Alipay Payment Gateway page
    Once customers click “Continue to Payment” button, they get redirected to Alipay payment gateway page.


  • Alipay Login Page
    Here, customers need to log in using their login details and entering the captcha.



  • Alipay Payment Page
    After successful login, customers need to add payment details and click submit to complete the payments. 



  • Alipay Payment Details in My Account
    After successful payment, customers can see Alipay payment details in their My Account section under My Orders tab. 


  1. Alipay Payment Details in the Backend
    Once the order is placed from frontend using Alipay payment method, the details of the transaction can be seen in order view backend.


  1. Alipay Payment Details in Order Email
    Once the order is placed, Alipay payment details are sent to customers in order confirmation Email.