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
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.
3
Create Mock Payment Gateway Accounts
Mock PSPs are test gateways that return predictable success or failure responses regardless of input. They let you test both code paths without external payment provider accounts. See the Mock Payment Gateways guide for details on limitations and capabilities.
- Go to Resources > Payment Gateway Account > Create
- Name:
testSuccess - Gateway:
NULLSuccess - Click Save
- Name:
testFailure - Gateway:
NULLFailure
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. Create eWallet Account
Create an eWallet Account in the Portal:- Go to Resources > eWallet Accounts > Add Account
- Name it
testWallet - Select the eWallet Type to be “CardPay”
- Set Merchant Identifier to be [your_company_name].com.orchestrasolutions
- Set Merchant Display Name to be your company name
- Disregard for now all other fields - when you’re ready to set up real use case processes, see Creating eWallet Accounts
- Click Save
2. Install Library
3. Create Session (Backend)
4. Display Payment Button (Frontend)
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.
5. Validate Result (Backend) - Optional
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.
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.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