Configuring Alipay+ (cross-border)
Learn how to configure Alipay+ (cross-border) for DigitalRiver.js with Elements.
Last updated
Learn how to configure Alipay+ (cross-border) for DigitalRiver.js with Elements.
Last updated
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:
The Alipay+ (cross-border) Source Request object requires the following fields.
Field | Value |
---|---|
Field | Required/Optional | Description |
---|---|---|
Use the DigitalRiver.js library to create and mount elements to the HTML container.
The address
object must contain postal code and state/province data that adheres to a standardized format.
When you create an Alipay+ (cross-border) source, the customer is required to authorize the charge through their payment provider. You can accomplish this by redirecting the customer to their payment provider.
To redirect your customer to the payment provider for authorization, use the redirectUrl
parameter in your createSource
response.
The payment provider presents 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.
Once authorized, you can use the source by attaching it to a checkout.
See Testing redirect payment methods for testing instructions.
type
alipayCn
sessionId
The payment session identifier.
owner
An Owner object.
alipayCn
An Alipay+ (Cross-border) Source Details object that includes the details of the transaction.
returnUrl
Required
Where you will redirect your customer after the customer authorizes or cancels within the Alipay+ (cross-border) experience.