# Integration overview

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

# Before you begin

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

-   The [user experience](../product_intro_acq/product_mpm_acq#UPyZ3) that Alipay+ Merchant-presented Mode Payment can provide to the consumers.
-   [General steps](../get_started_acq/get_started_integration_acq) you need to take to go through the whole integration process.

# Build an integration

Use the APIs that are provided by Alipay+ to integrate the following Merchant-presented Mode Payment functions as required:

## Accept a payment

Depending on the type of QR code, you need to take different steps as follows to accept payments from users:

#### Tab: Entry Code

1.  Create an entry code that points to a WAP page for the user to enter the payment amount.
2.  Identify the wallet used by the user and route the payment.
3.  Initiate a payment by calling the **pay** API.
4.  Handle the payment result that is obtained from Alipay+.

For more information about how to integrate related APIs to accept a payment with an entry code, see [Entry code](accept_payment_entry_code).

#### Tab: Order Code

1.  Initiate a payment by calling the **pay** API to obtain an order code from Alipay+.
2.  Handle the payment result that is obtained from Alipay+.

For more information about how to integrate related APIs to accept a payment with an order code, see [Order code](accept_payment_order_code).

#### Tab: private Order Code

1.  Create a private order code based on order information collected by the merchant.
2.  Handle the **userInitiatedPay** request to return order information to Alipay+.
3.  Handle the payment result that is obtained from Alipay+.

For more information about how to integrate related APIs to accept a payment with a private order code, see [Private order code](accept_payment_private_order_code).

## 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 results](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_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.

#### Tab: 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](../reconcile_acq).

#### Tab: 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](../registration_acq).

#### Tab: Handle a dispute

To enable Acquiring Service Providers (ACQPs) to resolve disputes after transactions occur, Alipay+ provides services and APIs for responding to disputes which are initiated by Mobile Payment Partners (MPPs). For more information about how to handle a dispute, see [Disputes](../api_acq_tile/initiate_retrieval).

# More information

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

-   To ensure your integration with Alipay+ can work properly, you need to ensure that your outputs meet Alipay+ standards, such as logos displayed on payment terminals and payment receipts. For more information about the requirements, see [Standard output checklist](standard_output).
-   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).
-   To ensure the message transmission security, the ACQP must [sign the request and validate the signature](../api_acq_tile/signature) 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 Merchant-presented Mode Payment, see [API list](api).