Configuring Clearpay
Learn how to configure Clearpay for DigitalRiver.js with Elements.
Step 1: Build a Clearpay Source Request and Source Details objects
Clearpay Source Request object
Field
Value
Clearpay Source Details object
{
"returnUrl":"https://js-test.digitalriver.com/v1/1.20220329.1453/components/redirect-receiver/redirect-receiver.html?controllerId=controller-76ef3046-888c-4073-90ad-1b5d61a8af08&componentId=redirect-receiver-1757f835-c21b-4f4e-b208-92adc5c30573&action=return",
"cancelUrl":"https://js-test.digitalriver.com/v1/1.20220329.1453/components/redirect-receiver/redirect-receiver.html?controllerId=controller-76ef3046-888c-4073-90ad-1b5d61a8af08&componentId=redirect-receiver-1757f835-c21b-4f4e-b208-92adc5c30573&action=cancel",
"shipping":{
"address":{
"line1":"10380 Bren Rd W",
"line2":"Suite 180",
"city":"Minnetonka",
"state":"MN",
"postalCode":"55344",
"country":"US"
},
"email":"[email protected]",
"phoneNumber":"9525551212",
"recipient":"Jane Doe"
}
}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