# APIs and SDKs

This topic lists all the APIs that are used for Merchant-presented Mode Payment.

# APIs

The following table lists the APIs that are used in the integration process.

| **Name** | **Endpoint** | **Direction** |
| --- | --- | --- |
| [inquiryPayment](../api_mpp/inquiry_payment) | N/A | Alipay+\->MPP |
| [refund](../api_mpp/refund) | N/A | Alipay+\->MPP |
| [cancelPayment](../api_mpp/cancel_payment) | N/A | Alipay+\->MPP |
| [applyToken](../api_mpp/apply_token) | N/A | Alipay+\->MPP |
| [userInitiatedPay](../api_mpp/pay_private_order_code) | /aps/api/v1/payments/userInitiatedPay | MPP\->Alipay+ |
| [notifyPayment](../api_mpp/notify_payment) | /aps/api/v1/payments/notifyPayment | MPP\->Alipay+ |

# Client SDK APIs

The following table lists the Alipay+ client SDK APIs that are used in the integration process.

| **Name** | **Description** | **Direction** |
| --- | --- | --- |
| Android: [setConfiguration](../sdk_mpp/android_get_configuration) iOS: [setConfiguration](../sdk_mpp/ios_get_configuration) | Used to set the initialization parameters. | MPP app -> Alipay+client SDK |
| Android: [launch](../sdk_mpp/android_launch) iOS: [launch](https://docs.alipayplus.com/alipayplus/alipayplus/sdk_mpp/ios_launch.md?role=MPP&product=Payment1&version=1.3.0) | Used to start the payment process for the entry code. | MPP app -> Alipay+client SDK |
| Android: [getCurrentRegion](../sdk_mpp/get_current_region_android) iOS: [getCurrentRegion](../sdk_mpp/get_current_region_ios) | Used to get the user's current location. | MPP app -> Alipay+client SDK |
| Android: [isAlipayPlusSupportedRegion](../sdk_mpp/supported_region_android) iOS: [isAlipayPlusSupportedRegion](../sdk_mpp/supported_region_ios) | Used to check whether the user is in Alipay+ supported region. | MPP app -> Alipay+client SDK |
| Android: [getAcceptanceMarkLogos](../sdk_mpp/get_logos_android) iOS: [getAcceptanceMarkLogos](../sdk_mpp/get_logos_ios) | Used to obtain the logos of acceptance marks that are supported by Alipay+ in the specific region. | MPP app -> Alipay+client SDK |
| Android: [getAuthCode](../sdk_mpp/android_get_auth_code) iOS: [getAuthCode](../sdk_mpp/ios_get_auth_code) | Used to obtain the authorization code. | Alipay+ client SDK -> MPP app |
| Android: [decode](../sdk_mpp/android_decode) iOS: [decode](../sdk_mpp/ios_decode) | Used to send the decoding request to the MPP. | Alipay+ client SDK -> MPP app |

> **Note**: To process payment requests from Acquiring Service Providers that operate in mainland China, the MPP also needs to integrate the **getAuthCode** SDK API and **applyToken** API.

# Server SDK APIs

The following table lists the Alipay+ server SDK APIs that are used in the integration process.

| **Name** | **Description** | **Direction** |
| --- | --- | --- |
| [ailpayconnect.code.CodeIdentificationService.identifyCode](https://docs.alipayplus.com/alipayplus/alipayplus/sdk_mpp/identify_code.md?role=MPP&product=Payment1&version=1.3.0) | Used to identify whether the code can be processed by Alipay+. | MPP server -> Alipay+ server SDK |
| [ailpayconnect.code.CodeIdentificationService.init](https://docs.alipayplus.com/alipayplus/alipayplus/sdk_mpp/init.md?role=MPP&product=Payment1&version=1.3.0) | Used to initialize the Alipay+ server SDK. | MPP server -> Alipay+ server SDK |