Configuring Clearpay
Learn how to configure Clearpay for DigitalRiver.js with Elements.
Step 1: Build a Clearpay Source Request and Details objects
Clearpay Source Request object
Field
Value
Clearpay Source Details object
{
"cancelUrl": "https://example1.com",
"returnUrl": "https://example2.com",
"shipping": {
"email": "[email protected]",
"phoneNumber": "077 1723 6984",
"recipient": "John Doe"
"address": {
"line1": "200 Broadway Ave",
"city": "West Beach",
"country": "AU",
"state": "South Australia",
"postalCode": "5024"
}
}
}Field
Required/Optional
Description
Step 2: Create a Clearpay source using DigitalRiver.js
Clearpay source response example
Step 3: Authorize the Clearpay source
Redirecting the customer for Clearpay authorization
Step 4: Use the authorized source
Testing Clearpay
Last updated