Logo
Commerce API API Documentation

Create payment source

POST https://{{apiDomain}}/payments/sources

The DigitalRiver.js library can be used to display payment methods and create a payment source.

https://docs.digitalriver.com/commerce-api/payments/payments-solutions

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status





Curl
curl -X POST 'https://api.digitalriver.com/payments/sources' -H 'Content-Type: application/json' -d '{"type":"creditCard","currency":"USD","amount":4.84,"reusable":false,"owner":{"firstName":"Digital","lastName":"River","email":"test@digitalriver.com","address":{"line1":"10380 Bren Road West","city":"Minnetonka","state":"MN","country":"US","postalCode":"55343"}},"creditCard":{"number":"4718491477220129","expirationMonth":7,"expirationYear":2027,"cvv":"415"}}'

ENDPOINTS