Payment Methods

Use the Payment Methods API to get the available payment methods for a cart.

Resource URIs

All methods in this API require a full access token.

Methods


					Host: api.digitalriver.com
Accept: application/json
Authorization: bearer your_access_token
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
			
					The request body should be empty.
			
					HTTP/1.1 200 OK
			
					{"paymentMethods": {
   "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"
      },
            {
         "type": "dinersClub",
         "displayName": "Diners Club",
         "description": "Diners Club"
      },
            {
         "type": "discover",
         "displayName": "Discover",
         "description": "Discover"
      },
            {
         "type": "JCB",
         "displayName": "JCB",
         "description": "JCB"
      },
            {
         "type": "masterCard",
         "displayName": "Master Card",
         "description": "Master Card"
      },
            {
         "type": "NCLCreditDirect",
         "displayName": "NCL Credit with no Application",
         "description": "NCL Credit with no Application"
      },
            {
         "type": "PayPalExpressCheckout",
         "displayName": "PayPalExpress Checkout",
         "description": "PayPalExpress Checkout"
      },
            {
         "type": "visa",
         "displayName": "Visa",
         "description": "Visa"
      },
            {
         "type": "WireTransfer",
         "displayName": "WireTransfer payments",
         "description": "WireTransfer payments"
      }
   ]
}}
			

Response Body Parameters

Fields
Data Type
Visibility
Description
paymentMethod
structured
default
The payment method information for this cart.
applyPaymentMethods
link
default
A link to the Apply Payment Method API.
type
string
default
The type of payment method for this cart.
displayName
string
default
The name of the payment method.
description
string
default
A description of the payment method.