Managing payment methods
Learn how to manage payment methods in a cart.
Getting the available payment methods for the cart
curl --location -g --request GET ' https://api.digitalriver.com/v1/shoppers/me/carts/active/payment-methods' \
--header 'Authorization: Basic {Your_API_Key}' \
...{
"uri": "https://api.digitalriver.com/v1/shoppers/me/carts/active/payment-methods",
"applyPaymentMethod": {
"uri": "https://api.digitalriver.com/v1/shoppers/me/carts/active/apply-payment-method"
},
"paymentMethod": [
{
"type": "americanExpress",
"displayName": "American Express",
"description": "American Express"
}
]
}curl --location --request POST 'https://api.digitalriver.com/shoppers/me/carts/active' \
--header 'Content-Type: application/json' \
--header 'authorization: Basic {Your_API_Key}\
--data-raw '{
"cart": {
"organizationId": "Acme_Inc",
"lineItems": {
"lineItem":
{
"quantity": "1",
"product": {
"id": "5326162000"
}
}
}
}
}'{
"cart": {
...
"organizationId": "Acme_Inc"
}
}Last updated