> For the complete documentation index, see [llms.txt](https://docs.digitalriver.com/commerce-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalriver.com/commerce-api/payments/supported-payment-methods/alipay-domestic.md).

# Alipay (domestic)

Established in 2004, Alipay (domestic) is China's leader in third-party online payments and has an estimated 300 million users. It works much like PayPal, where the consumer chooses to make a payment and is directed to the external Alipay (domestic) site, where they enter (or choose existing) payment information.&#x20;

{% hint style="info" %}
Alipay (domestic) does not support recurring payments.
{% endhint %}

Contact your Customer Success Manager and sign an Alipay (domestic) addendum if you want to use Alipay (domestic).

## How to configure&#x20;

How you configure Alipay (domestic) depends on whether you're using [DigitalRiver.js with Elements](/commerce-api/payments/payments-solutions/digitalriver.js.md) or[ Drop-in payments](/commerce-api/payments/payments-solutions/drop-in.md).

<table><thead><tr><th width="413">DigitalRiver.js with Elements</th><th>Drop-in payments</th></tr></thead><tbody><tr><td><a href="/pages/-M24U5R4AA6at9rT3xJe">Configuring Alipay</a><a href="/pages/-M24U5R4AA6at9rT3xJe"> (domestic)</a></td><td><a href="/pages/-M4QkPmjkcIVqKR6tT5J">Drop-in Payments Integration Guide</a></td></tr></tbody></table>

## How it works

Alipay (domestic) uses a [redirect then submit (RTS) payment flow](/commerce-api/payments/building-your-workflows/flows-by-payment-type.md#redirect-then-submit-rts-payment-flow).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.digitalriver.com/commerce-api/payments/supported-payment-methods/alipay-domestic.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
