Library Setup & Use
Validate Operation Result
Validate the data returned to the client after a Payments Library operation to ensure it was not altered.
POST
Payments Library Reference
Complete reference for Payments Library operations
Error Responses
Parameters
Headers
string
required
Your API key prefixed with
APIKEY. Example: APIKEY your-api-key. See the Authentication guide.Request Body
string
required
The payment token string received in the client-side callback function. Pass it as the raw request body.
Response
A successful validation returns the decoded operation results. Which fields are populated depends on the operation and payment method:upgChargeResults- PSP transaction details for card, Apple Pay, and Google Pay charges. Always a single object holding the final gateway attempt.failedUpgChargeResults- Array of earlier failed attempts when a payment gateway fallback chain ran.nullwhen the first attempt was the only one.directChargeResults- Results for redirect-based methods (PayPal, bank payments, UPI).tokenAndMaskedCardModel- Token and masked card details forTOKENIZE,CHARGE_AND_TOKENIZE, andPREAUTH_AND_TOKENIZEoperations.
-125 with HTTP 400.

