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
Sign up at portal.orchestrasolutions.com.
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:
- Go to API Keys > Create
- Enter a Name for the key (e.g., “Development”)
- Ignore the User setting for now - when you’re ready, see Managing Users and Permissions
- Click Save
- 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
- Capture a payment (Library)
- Backend operations (REST API)
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.
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