Overview
Collect Checkout provides a streamlined, hosted checkout solution that enables merchants to accept payments through a secure, gateway-hosted checkout page. This API integration method allows developers to programmatically create checkout sessions for dynamic payment flows.This page covers the API integration method for developers. For a no-code solution using payment links, see Collect Checkout - No-Code.
Choose Your Integration Method
No-Code Payment Links
Create payment links instantly from your dashboard - no coding required
API Integration
Programmatically create checkout sessions (covered on this page)
Key Features
Quick Integration
Get started with minimal code
Hosted Solution
Gateway-hosted checkout reduces PCI scope
Mobile Optimized
Responsive design works on all devices
Secure Processing
Built-in security and fraud prevention
How It Works
1
Initiate Checkout
Your server creates a checkout session with the gateway
2
Redirect Customer
Redirect the customer to the hosted checkout page
3
Customer Completes Payment
Customer enters payment information on the secure hosted page
4
Return to Merchant
After payment, customer is redirected back to your site
5
Verify Transaction
Your server verifies the transaction result
Methodology
Collect Checkout uses a redirect-based approach similar to the Three Step Redirect API, but with a more streamlined checkout interface optimized for conversion. The checkout page is fully hosted by the gateway and includes:- Payment form with validation
- Multiple payment method support
- Mobile-responsive design
- Automatic security features
- Error handling and retry logic
Integration Method
Required Parameters
| Parameter | Description | Format |
|---|---|---|
security_key | Your API security key | String |
amount | Transaction amount | x.xx |
order_description | Description of the purchase | String |
redirect_url | Success redirect URL | URL |
Optional Parameters
| Parameter | Description | Format |
|---|---|---|
cancel_url | Cancel redirect URL | URL |
customer_email | Customer email address | |
billing_address | Pre-fill billing address | Object |
custom_fields | Merchant-defined fields | Key-value pairs |
Response Handling
After payment completion, the customer is redirected to yourredirect_url with transaction details:
Standard Implementation
1
Create Checkout Session
Send a POST request to create the checkout session with transaction details
2
Store Session Reference
Save the session ID in your database for later verification
3
Redirect Customer
Redirect the customer to the checkout URL returned by the gateway
4
Handle Return
Process the customer when they return from the checkout page
5
Verify Transaction
Use the Query API to verify the transaction status
Customization Options
While Collect Checkout is a hosted solution, you can customize:- Logo and branding colors
- Success and cancel messages
- Required fields
- Payment methods accepted
- Receipt options
Contact your account representative to configure checkout page customization options.
Testing
Use test mode credentials to verify your integration:- Test amounts ending in
.00will approve - Test amounts ending in
.01will decline - Test amounts ending in
.02will trigger errors

