Alipay+ DocsAlipay+ Docs

Integration overview

This topic introduces the functions that Alipay+ Cashier Payment provides and guides you through how to use the APIs and SDKs to build an integration for these functions.

Before you begin

Before you learn more about how to integrate with Alipay+ Cashier Payment, ensure that you are familiar with the following things:

  • The user experience that Alipay+ Cashier Payment can provide to consumers.
  • General steps you need to take to go through the whole integration process.

Build an integration

Use the APIs and SDKs that are provided by Alipay+ to integrate the following Cashier Payment functions as required:

Make a payment

To make payments to merchants, you need to take the following steps:

  1. Identify the code to determine whether the code can be processed by Alipay+.
  2. Decode and send the code value to Alipay+ by calling the userInitiatedPay API. Alipay+ then returns the order information to the Mobile Payment Provider (MPP) .
  3. Render and present the cashier page to the user, where the order details that are received in the previous step are displayed.
  4. (Optional) With the paymentRedirectURL parameter passed by Alipay+, redirect the user back to the merchant side, where the user is presented with the payment result.

For more information about how to integrate related APIs or SDKs to make a payment, see Make a payment.

Return payment results

To return payment results to Alipay+, you need to integrate the inquirePayment and notifyPayment APIs. For more information about how to integrate the APIs, see Notify payment result and Respond to payment inquiry.

Cancel and refund

To support the users in refunding and canceling payments, you need to integrate the refund and cancelPayment APIs. For more information about how to integrate the APIs, see Cancel a payment and Refund.

More operations

Apart from the payment-oriented functions that are mentioned above, Alipay+ provides more services and APIs for you to manage your business.

Alipay+ provides multiple types of transaction reports to help you to perform the clearing and settlement of transactions. To streamline your business workflows, you need to develop your reconciliation function module according to the production mechanism and specification of the transaction reports. For more information, see Reconcile.

More information

Go through the section below to obtain more information that empowers your integration:

  • When using APIs to integrate, you need to take the following things into consideration:
    • Make a POST request to the corresponding address with the identity information, signature, and business parameters in the HTTP request. For more information about the structure of a request and response, see API overview.
    • To ensure the message transmission security, the MPP must sign the request and validate the signature properly. When calling an Alipay+ API, the MPP must sign the API request and validate the response signature accordingly; when receiving an API call from Alipay+, the MPP must validate the request signature and sign the API response accordingly.
  • For the full list of APIs and SDKs that are provided for Cashier Payment, see APIs and SDKs.