Configuring Alipay+ (cross-border)
Learn how to configure Alipay+ (cross-border) for DigitalRiver.js with Elements
If you're using DigitalRiver.js with Elements, you can create an Alipay+ (cross-border) payment method for your app or website in four easy steps:
Step 1: Build an Alipay+ (cross-border) source request object
Build an Alipay+ (cross-border) Source Request object. The Alipay+ Source Request object requires the following fields.
Field | Value |
---|---|
|
|
| The payment session identifier. |
| An Owner object. |
| An Alipay+ (cross-border) Source Details object that includes the details of the transaction. |
Alipay+ (cross-border) source example
Step 3: Authorize an Alipay+ (cross-border) source
When you create an Alipay+ (cross-border) source, the customer must authorize the charge through their payment provider. You can accomplish this by redirecting the customer to their payment provider.
Redirecting the customer for authorization
Use the redirectUrl
parameter in your createSource
response to redirect your customer to the payment provider for authorization.
The payment provider will present the customer with the transaction details to authorize or cancel the transaction. A successful authorization redirects the customer to the Alipay Return URL parameter you specified when you created the source.
Step 4: Use the authorized source
Once authorized, you can use the source by attaching it to a cart.
Testing Alipay+ (cross-border)
See Testing redirect payment methods for testing instructions.
Last updated