1. Request a Quote
POST Request to {Endpoint}/pay/getQuote
Calling getQuote only requires two body parameters in the JSON format. MerchantID is associated with the storefront that is the merchant.
merchantID
String
Merchant Username for given merchant
orderAmount
String
Order Amount in USD
JSON Body Request Example:
JSON Success Response (Status Code 200)
JSON Response Body:
success
Boolean
True if request is successful
subTotal
Number
The requested order amount
fee
Number
The fee amount for the given merchant
total
Number
The summation of the subtotal and fee. Amount to be charged by the card when authorized
token
String
Quote token, used as a parameter when authorizing a payment
tokenExpire
String
The expire time for the quote
Information regarding tokens:
Tokens are active for 10 minutes following the time they’ve been created (600 seconds). Merchants should consider this and make repetitive requests to getQuote, if needed, to ensure that when a payment is authorized, there is an active quote that is associated with that order. Request to authorize a transaction with an expired quote will revert.
Last updated