Configuring Alipay (domestic)
Learn how to configure Alipay (domestic) for DigitalRiver.js with Elements
Last updated
Was this helpful?
Learn how to configure Alipay (domestic) for DigitalRiver.js with Elements
Last updated
Was this helpful?
If you're using, you can create an Alipay (domestic) payment method for your app or website in four easy steps:
Build an Alipay (domestic) Source Request object. The Alipay Source Request object requires the following fields.
type
alipay
sessionId
The payment session identifier.
owner
alipay
returnUrl
Required
Where you will redirect your customer after the customer authorizes or cancels within the Alipay (domestic) experience.
Use the DigitalRiver.js library to create and mount elements to the HTML container.
When you create an Alipay (domestic) source, the customer must authorize the charge through their payment provider. You can accomplish this by redirecting the customer to their payment provider.
Use the redirectUrl
parameter in your createResource
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.
An .
An object that includes the details of the transaction.
The address
object must contain postal code and state/province data that using the state
attribute. Note that the state
attribute listed below corresponds to the countrySubdivision
attribute used when providing address information. The payment session manages the correct field name on the backend.
Once authorized, you can use the source by .
See for testing instructions.