PaymentRequestOptions

The payments.paymentRequest method argument

This object contains the details of a payment request including line items, shipping contact and options, and total payment request.

Properties

JS
JavaScript

const paymentRequestOptions = {

   "countryCode": "US",

   "currencyCode": "USD",

   "lineItems": [

     {

       "label": "Shipping charges",

       "amount": "15.69",

       "pending": true

     }

   ],

   "requestBillingContact": false,

   "requestShippingContact": false,

   "shippingOptions"[

     {

       "label": "Next Day",

       "amount": "15.69",

       "id": "1"

     },

     {

       "label": "Three Day",

       "amount": "2.00",

       "id": "2"

     }

   ],

   // pending is only required if it's true.

   "total": {

     "amount": "100.00",

     "label": "Total",

   },

};