latestOpenAPI 3.0.02026-08-101013821017.9 KB
4b69392f93b9
Payment-Options
Update the shopper payment options
Update a payment options for a shopper.
post/v1/shoppers/me/payment-options/{paymentOptionId}
Path parameters
paymentOptionIdstring required
Payment Option ID.
Query parameters
tokenstring
Provide the authorized token for a shopper.
expandstring
Gives additional details about resources.
Request body
Example request
{
"paymentOption": {
"nickName": "DRBank",
"isDefault": "true",
"sourceId": "c25fcccc-6e57-4d93-bafb-a6765510a422"
},
"shopper": {
"ipAddress": "192.168.100.102"
}
}Response
Created (Payment Source, contact your Digital River team to set up)
Example response
{
"uri": "https://api.digitalriver.com/v1/shoppers/me/payment-options/740865108",
"id": 740865108,
"nickName": "Default",
"isDefault": "true",
"type": "creditCard",
"sourceId": "a231f38d-3a07-4a13-96ed-89693ba7d56c",
"sourceClientSecret": "a231f38d-3a07-4a13-96ed-89693ba7d56c_f6d8c951-59c9-4ef3-ac45-9f33c77d2f46",
"creditCard": {
"expirationYear": "2030",
"lastFourDigits": "0000",
"clientSecret": "a231f38d-3a07-4a13-96ed-89693ba7d56c_f6d8c951-59c9-4ef3-ac45-9f33c77d2f46",
"expirationMonth": "08",
"fundingSource": "debit",
"brand": "Visa",
"reusable": "true"
}
}