---
title: "Alipay for API only"
description: "Add Alipay to your API-only integration."
url: "https://docs.adyen.com/payment-methods/alipay/api-only"
source_url: "https://docs.adyen.com/payment-methods/alipay/api-only.md"
canonical: "https://docs.adyen.com/payment-methods/alipay/api-only"
last_modified: "2026-06-01T15:33:15+02:00"
language: "en"
---

# Alipay for API only

Add Alipay to your API-only integration.

[View source](/payment-methods/alipay/api-only.md)

You can add Alipay to your existing integration. The following instructions show only what you must add to your integration specifically for Alipay.

If an instruction on this page corresponds with a step in the main integration guide, it includes a link to corresponding step of the main integration guide.

## Requirements

| Requirement           | Description                                                                                                                                                                                                                |   |
| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | - |
| **Integration type**  | Make sure that you have an existing [API-only integration](/online-payments/build-your-integration/advanced-flow/?platform=Web\&integration=API%20only).                                                                   |   |
| **Redirect handling** | Make sure that your existing integration is set up to [handle the redirect](/online-payments/build-your-integration/advanced-flow/?platform=Web\&integration=API%20only#handle-the-redirect). `action.type`: **redirect**. |   |
| **Setup steps**       | Before you begin, [add Alipay in your Customer Area](/payment-methods/add-payment-methods).                                                                                                                                |   |

## How it works

1. The shopper selects Alipay as the payment method.
2. The shopper enters their details in the [payment form that you build](#build-your-payment-form).
3. When you make the payment request, you [include additional information about the items that the shopper intends to purchase](#additional-parameters-payments).
4. Your existing integration setup will [handle the redirect](/online-payments/build-your-integration/advanced-flow/?platform=Web\&integration=API%20only#handle-the-redirect).

## Build your payment form

Include Alipay in the list of available payment methods. You do not need to collect any information from the shopper in your payment form.

You can [download the logo for Alipay](/online-payments/build-your-integration/advanced-flow/?platform=Web\&integration=API%2Bonly\&version=71#downloading-logos) to use in your form.

## Get Alipay as an available payment method

When you make the [/paymentMethods](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods) to [get available payment methods](/online-payments/build-your-integration/advanced-flow/?platform=Web\&integration=API%20only#get-available-payment-methods), specify the following so that Alipay is included in the response.

| Parameter                                                                                                          | Values                                                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [countryCode](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#request-countryCode)         | **AT, AU, BE, BG, CA, CH, CY, CZ, DE, DK, EE, ES, FI, FR, GB, GR, HK, HR, HU, ID, IS, IT, JP, KR, LT, LU, LV, MT, MY, NL, NO, NZ, PH, PL, PR, PT, RO, SE, SG, SI, SK, TH, TW, US, VN** |
| [amount.currency](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#request-amount-currency) | **AUD, CAD, CHF, DKK, EUR, GBP, HKD, JPY, MYR, NOK, NZD, SEK, SGD, THB, USD**                                                                                                          |

**Example request for available payment methods**

```bash
curl https://checkout-test.adyen.com/v72/paymentMethods \
-H 'x-api-key: ADYEN_API_KEY' \
-H 'idempotency-key: YOUR_IDEMPOTENCY_KEY' \
-H 'content-type: application/json' \
-X POST
-d '{
   "merchantAccount": "ADYEN_MERCHANT_ACCOUNT",
   "countryCode": "NL",
   "amount": {
      "currency": "EUR",
	  "value": 1000
   },
   "shopperLocale": "nl-NL"
}'
```

**Example response with Alipay available**

```json
{
    "paymentMethods": [
        {
            "name": "Alipay",
            "type": "alipay"
        }
    ]
}
```

## Add additional parameters to your /payments request

You do not need to add any parameters when you [make a payment](/online-payments/build-your-integration/advanced-flow/?platform=Web\&integration=API%20only#make-a-payment).

## Test and go live

We recommend doing live penny tests:

1. Get an Alipay wallet app, set it up with a credit or debit card, and do live penny tests (payments for a minimal amount).

2. View the details of your Alipay test payments in your [live Customer Area](https://ca-live.adyen.com/) > **Transactions** > **Payments**.

Before you can accept live Alipay payments, you need to submit a request for Alipay in your [live Customer Area](https://ca-live.adyen.com/).

## See also

* [API-only integration guide](/online-payments/build-your-integration/advanced-flow/?platform=Web\&integration=API%20only)
