Skip to main content
This page is part of the Payments Library Guides. Prefer direct API calls instead? See REST API Guides.
Prerequisites: API key, Payment Gateway Account, and eWallet Account configured. This page provides a complete working example showing how to integrate the Orchestra Payments Library from server to client.

View on GitHub

Clone the complete example project

Server-Side: Create Session

Your server creates a session with the Orchestra API and returns the token to the client.

Client-Side: HTML

Create container elements for each payment method you want to display:

Client-Side: JavaScript

Initialize the library and render payment buttons:

Server-Side: Validate Results

After a successful payment, validate the result token with Orchestra to confirm the payment:

Library Setup

Installation and quick start

Library Reference

Full API reference

Start Session API

Session creation endpoint

Validate Results API

Result validation endpoint