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

Request Body

{"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"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring