Prerequisites
- A PCI Booking merchant account.
- Credentials configured for the payment methods you want to accept. See Payments Library Credentials.
- If CardPay is enabled with 3D Secure, enter your 3DS merchant details in your CardPay settings first. The Payments Library uses only those details; see 3DS Merchant Setup.
Installation
npm
Create a Session
Before initializing the library, your server must create a payment session with PCI Booking. The session defines the operation type (e.g.TOKENIZE, CHARGE) and returns a session token.
Pass the session token to your frontend to initialize the library. For returning customers, the session can also carry up to 3 stored cards so the payer can pay with a saved card by entering only its CVV.
Minimal Working Example
Session tokens are single-use. Create a new session for each checkout attempt.
Server-Side Validation
After the customer completes the payment, your callback receives a result token. Send this token to your server and call the Validate Operation endpoint to confirm the result is authentic.Next Steps
Supported Payment Methods
See which methods are available and their supported operations
Library Reference
Full API surface: constructor parameters, all methods, UI options

