Skip to main content
This guide installs the Payments Library, creates a payment session, and processes a first payment end to end.

Prerequisites

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.

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