Retrieving sources

Learn how to manage payment sources.

For more information on payment options, see Retrieving sources under Payments.

Creating shopper payment options

Create the payment options as described in Payment options.

Updating the shopper's payment options

Use the POST /v1/shoppers/me/payment-options/{paymentOptionId} request with the payment options identifier (paymentOptionId) to update the shopper's payment options. See Payment options query parameters for a description of the query parameters.

curl --location --request GET 'https://api.digitalriver.com/v1/shoppers/me/payment-options/{paymentOptionid}' \
--header 'authorization: bearer ***\
...
--data-raw '{
  "paymentOption": {
    "nickName": "DRBank",
    "isDefault": "true",
    "sourceId": "{{sourceId}}"
  },
  "shopper": {
    "ipAddress": "192.168.100.102"
  }
}

Getting the shopper's payment options

Use GET /v1/shoppers/me/payment-options request to retrieve all payment options configured for a shopper. See Payment options query parameters for a description of the query parameters.

curl --location --request GET 'https://api.digitalriver.com/v1/shoppers/me/payment-options' \
--header 'authorization: bearer ***\
...

Getting the shopper's payment option

Use GET /v1/shoppers/me/payment-options/{paymentOptionId} request with the payment options identifier (paymentOptionId) to retrieve all payment options configured for a shopper. See Payment options query parameters for a description of the query parameters.

curl --location --request GET 'https://api.digitalriver.com/v1/shoppers/me/payment-options/{paymentOptionId}' \
--header 'authorization: bearer ***\
...

Last updated