Skip to main content
This guide walks you through creating a sandbox account, setting up mock payment gateways, and making your first test charge. No external payment provider accounts required.
This quickstart uses Orchestra’s built-in mock payment gateways for immediate testing. When you’re ready for production, see Add a Payment Provider.

Setup

1

Create Orchestra Account

2

Create Your Mock Environment

On the portal home page, select Create your mock environment on the Payments Library card. It creates everything this guide uses: a mock payment gateway account named testSuccess and a CardPay eWallet account named testWallet.
Mock payment gateways return predictable responses without an external payment provider account. See Mock Payment Gateways.
3

Generate API Key

Create an API key to authenticate your requests:
  1. Go to API Keys > Create
  2. Enter a Name for the key (e.g., “Development”)
  3. Ignore the User setting for now - when you’re ready, see Managing Users and Permissions
  4. Click Save
  5. Copy the key immediately - you won’t see it again
Copy the key now - you won’t be able to view it again.

Capture with the Library, Operate with the API

Payments Library

Start here. Capture your first payment in the frontend: pre-built UI, reduced PCI scope, supports digital wallets (Apple Pay, Google Pay).Demonstrates:
  • Session creation
  • Frontend integration with payment buttons
  • Result validation

REST API

Then drive backend operations on the payment the Library captured: charges on stored tokens, refunds, recurring billing, custom flows.Demonstrates:
  • Basic charges
  • Tokenization for PCI scope reduction

1. Install Library

2. Create Session (Backend)

3. Display Payment Button (Frontend)

CHARGE_AND_TOKENIZE charges the card and stores it in one step. Keep the card token: the REST API tab uses it.
This is where credit card details are submitted on the frontend. The Payments Library handles card collection and tokenization, keeping sensitive data out of your backend code.

4. Validate Result (Backend)

Validate the result token received from Orchestra on the client side and passed to your server. This ensures the token wasn’t altered between the client and server. Always validate before you fulfil an order.

You’re in

You just completed an Orchestra integration using the Payments Library with mock PSPs. These examples demonstrate Orchestra’s key capabilities without requiring external payment provider accounts.
Your compliance officer will ask what this means for your PCI DSS scope. Send them PCI Scope and Compliance: which SAQ applies to you, and the compliance documents you can request from us.
Ready for production? See Add a Payment Provider to configure real gateways. Your code stays the same - just swap the gateway account names.

What’s Next

Complete Example

Full server + client code you can clone and run

Library Setup

Full configuration and customization

Payment Methods

CardPay, ApplePay, GooglePay, PayPal, and more

Add Real Providers

Configure Stripe, Adyen, and more