Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
Charge Tokenized Payment Method
Unique identifier of the payment method to charge
"pmt_ftoeKIYGC3f43frT"
Your unique identifier for the customer
"cus_Tfd3Jq1tZxPjYVhRQW2r3"
Three letter abbreviation of the currency
"USD"
The amount in lowest count unit (e.g., cents for USD)
1000
Unique identifier of the storefront
"sf_sadfsdfsdf213dsaf"
Response
Payment charged successfully
Unique identifier of the payment intent
"in_dHd3Jq1tZxPjYVhRQW2r3"
The status of the payment intent. Refer payment intent status
"SUCCESS"
Error code if the operation was not successful
"card_declined"