Accept Alipay payments using our APIs, and build your own payment form to have full control over the look and feel of your checkout page.
Requirements
Requirement | Description |
---|---|
Integration type | Make sure that you have built an API-only integration. |
Setup steps | Before you begin, add Alipay in your test Customer Area. |
Build your payment form for Alipay
Include Alipay in the list of available payment methods. You do not need to collect any information from the shopper in your payment form.
We provide logos for Alipay which you can use on your payment form. For more information, refer to Downloading logos.
If you are using the /paymentMethods to show available payment methods to the shopper, specify the following:
- countryCode: The country/region where the shopper is, in this case a supported country/region outside of China, for example NL.
- amount.currency: Any supported currency. For example, EUR. See Processing currencies for ecommerce for more information.
- channel: Specify Web, iOS, or Android.
The response contains paymentMethod.type
: alipay for Web, or alipay_wap for iOS and Android.
Make a payment
In your /payments request, specify:
-
paymentMethod.type
:- alipay for Web, to use the desktop flow where the QR code displayed on the website.
- alipay_wap for iOS and Android, to redirect to the mobile app.