# Integration overview

> Learn about the functions of Alipay+ Auto Debit to plan your integration, and get a step-by-step guide about how to build the integration with the Alipay+ APIs for these functions.

Learn about the functions of Alipay+ Auto Debit to plan your integration, and get a step-by-step guide about how to build the integration with the Alipay+ APIs for these functions.

# Before you begin

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

-   The [user experience](https://docs.alipayplus.com/alipayplus/alipayplus/product_intro_acq/product_debit_acq_tile.md#6ojJs) that Alipay+ Auto Debit can provide to the consumers.
-   [General steps](https://docs.alipayplus.com/alipayplus/alipayplus/get_started_acq/get_started_integration_acq.md) you need to take to go through the whole onboarding and integration process.

# Build an integration

Use the APIs that are provided by Alipay+ to integrate the following Auto Debit functions as required:

## Obtain the user authorization

To obtain the user authorization for deducting funds from the user's wallet account, you need to take the following steps:

1.  Initiate account binding by calling the **prepare** API, and then open the Alipay+ wallet page, where the user chooses a wallet that is supported by Alipay+ and gets redirected to the wallet's authorization page.
2.  Retrieve the auth code from the URL through which the user is redirected back to the merchant side after confirming authorization at the wallet side. You can also integrate the **authNotify** API to receive notifications containing the auth code from Alipay+.
3.  Request the access token by calling the **applyToken** API and then bind the access token with the user account on the merchant side. You can also integrate the **authNotify** API to receive notifications containing the access token from Alipay+.

For more information about how to integrate related APIs to obtain the user authorization, see [Obtain the user authorization](obtain_user_authorization).

## Accept a payment

After the user authorization is obtained, the merchant can initiate payments with the access token to deduct funds from the user's wallet account without involving further user interactions. For more information about how to integrate related APIs to accept a payment, see [Accept a payment](accept_payment).

## Obtain payment results

To obtain payment results from Alipay+, you need to integrate the **inquirePayment** and **notifyPayment** APIs. For more information about how to integrate the APIs, see [Inquire about payment result](inquire_payment_result) and [Receive payment notification.](receive_payment_notification)

## 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](cancel_a_payment) and [Refund](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.

### Reconcile

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](https://docs.alipayplus.com/alipayplus/alipayplus/reconcile_acq.md).

### Register a merchant

In certain countries or regions, for legal or compliance reasons, you need to register the merchant information before processing a payment. For more information about how to integrate related APIs for merchant registration, see [Registration](https://docs.alipayplus.com/alipayplus/alipayplus/registration_acq.md).

## More information

-   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](../api_acq_tile/api_overview.md).
-   To ensure the message transmission security, the ACQP must [sign the request and validate the signature](../api_acq_tile/signature.md) properly. When calling an Alipay+ API, the ACQP must sign the API request and validate the response signature accordingly; when receiving an API call from Alipay+, the ACQP must validate the request signature and sign the API response accordingly.

-   For the full list of APIs that are provided for Auto Debit, see [API List](api).