alipay payment method code.
Supported workflows
| Workflow | Supported |
|---|---|
| Payrails SDK | ✔ |
| Payrails API | ✔ |
| Delayed / Manual Capture | ✖ |
| Instant Capture | ✔ |
| Cancel / Void | ✖ |
| Refund / Reverse | ✔ |
| Save Instruments | ✖ |
| Merchant Initiated Transaction (MIT) | ✖ |
Before you begin
Complete these steps before you send your first Alipay payment through Stripe:- Set up a Stripe integration in your workspace. Follow the Stripe integration setup guide if you don’t have one yet.
- Turn on Alipay in your Stripe Dashboard payment method settings.
- In the Payrails Portal, go to Settings → Integrations, open your Stripe integration, select Alipay under Payment methods, and save.
- Add Alipay as a payment option in your workflow.
Request fields for Stripe
Send these fields in the authorize request, in addition to the standard authorize fields. Required fields must be present for the payment to succeed. Payrails sends Optional fields to the PSP when you include them.Authorize an Alipay payment
Call authorize a payment withalipay as the paymentMethodCode. The response includes the redirect to Alipay.
Authorize request
success or error URL. Confirm the result through webhook notifications or the execution status before you fulfill the order.
How Stripe handles Alipay
- Payrails rejects zero-amount Alipay requests, so a zero-value authorization doesn’t work for Alipay.
- Payrails doesn’t store a Stripe token for Alipay, so each payment needs the customer to confirm it in Alipay.