For general setup instructions, see Library Setup.
Availability
CardPay is available in all browsers. It appears incheckAvailability() results when a payment gateway account is configured in the session.
Button Setup
What the Form Collects
The CardPay popup form collects:- Card number (with formatting and brand detection)
- Expiration date
- CVV/CVC
- Cardholder name
Supported Operations
| Operation | Supported |
|---|---|
CHARGE | Yes |
TOKENIZE | Yes |
CHARGE_AND_TOKENIZE | Yes |
Result Handling
Charge Results
When the session operation isCHARGE, results come through upgChargeResults:
Tokenization Results
When the session operation isTOKENIZE or CHARGE_AND_TOKENIZE, results include tokenAndMaskedCardModel:
3D Secure
CardPay automatically triggers 3D Secure authentication when required. The library handles the challenge flow (popup or iframe) without additional code. After 3DS completes, the result includes authentication data:Requirements
CardPay requires a payment processor (PSP) account configured in Orchestra. When creating the session, providepaymentGatewayAccountId: