Cards
What is a cardToken?
cardToken is a unique card identifier in the GlobalPay system, obtained after registering a card via POST /v1/card. It is used for payments instead of the actual card number.
Why is needsVerification: true?
The card requires OTP confirmation. Send the SMS code via POST /v1/card/confirm/{cardToken}. After confirmation, the card becomes available for payments.
How long does an OTP code last?
OTP is limited by time (usually a few minutes) and number of attempts. If it expires or attempts are exceeded (code 4029), the card must be registered again.
Can I save a card for recurring payments?
Yes. After successful confirmation, cardToken can be saved and reused for subsequent payments without re-entering card details.
How do I determine card type from the number?
Use POST /v1/external/cards/checkprocessing — it returns the scheme (Uzcard, Humo, Visa, etc.), origin (domestic/international), and ownership type. Useful for showing the commission to the user before payment.
How do I get the amount including commission?
Pass initialAmount in the POST /v1/external/cards/processing-check request. The response field amount contains the total amount to be charged including commission.