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:
- Click your username in the top-right corner
- Select API Keys > Create
- Enter a Name for the key (e.g., “Development”)
- Ignore the User setting for now
- 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:
test-success - Gateway:
NULLSuccess - Click Save
- Name:
test-failure - Gateway:
NULLFailure
Choose Your Approach: Payments Library or REST API
Payments Library
Use when: Customers enter cards in your 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
Use when: You collect card details on your backend. Full control, mobile apps, recurring payments, custom flows.Demonstrates:
- Basic charges
- Tokenization for PCI scope reduction
- Payments Library
- REST API
1. Create eWallet Account
Create an eWallet Account in the Portal:- Go to Resources > eWallet Accounts > Add Account
- Name it
test-ewallet - Select the eWallet Type to be “CardPay”
- Set Merchant Identifier to be [your_company_name].com.orchestrasolution
- Set Merchant Display Name to be your company name
- Disregard for now all other fields
- 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.