Configuring Credit Cards
Learn how to configure Credit Cards for DigitalRiver.js with Elements.
Last updated
Was this helpful?
Learn how to configure Credit Cards for DigitalRiver.js with Elements.
Last updated
Was this helpful?
If you're using, you can create a payment method for your app or website in three easy steps:
Build a Credit Card Source Request object. The Credit Card Source Request object requires the following fields.
type
creditCard
sessionId
The payment session identifier.
owner
Use the DigitalRiver.js library to create and mount elements to the HTML container.
An .
To create a credit card payment source, you must reference the created element and the supplemental data in your request. DigitalRiver.js will retrieve and assemble the request on your behalf.
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 or .
See for testing instructions.