This guide covers the core card submission endpoint that allows you to process payments by submitting card and customer information for a specific product.Documentation Index
Fetch the complete documentation index at: https://docs.paysight.io/llms.txt
Use this file to discover all available pages before exploring further.
Please also consult the API Reference for detailed information on the Card Submission API.
Prerequisites
Before starting the integration, ensure you have:Paysight Account
Active merchant account with Paysight
Client ID
Find this in your Account Section
API Credentials
API key available in your Account Section
Product ID
Available from your Product Management section.
Development Environment
Set up for testing

API Endpoint Overview
The card submission API processes payment transactions by accepting card details and customer information.Base URL
- Test Environment:
https://test.paysight.io
Endpoint
- Method:
POST - Path:
/api/{productId}
Step-by-Step Integration
Step 1: Authentication Setup
The API uses API key authentication passed in the Authorization header.Step 2: Prepare Request Payload
The API expects a comprehensive payload with card, customer, and transaction details.Minimum Required Request Body (JSON)
Session Management
| Parameter | Type | Description |
|---|---|---|
| paysightSession | string | Unique identifier of the session/user visit (generated by Paysight). |
| partnerSession | string | Partner/client assigned unique identifier of the session/user visit. Persist this value between calls for the same user session. |
Using session fields to match transaction webhooks
Use these two fields as your correlation keys across API calls and webhook events:- Send your own click/visit/session identifier in
partnerSessionwhen calling Card Submit. - Card Submit responses return both
partnerSessionandpaysightSession. - Transaction webhooks include both fields, so you can join webhook events back to your original traffic/session data.
- If you use the Widget SDK,
sessionIdis forwarded to Card Submit aspartnerSession.
Step 3: Make a Request to API
Base URL
- Test Environment:
https://test.paysight.io
Endpoint
- Method:
POST - Path:
/api/{productId}
Step 4: Handle the Response
The API returns a comprehensive response with transaction details:If chargeSuccess is false but subscribeSuccess is true, this indicates a successful opt-in.
Step 5: Process Response
Use the response from the API to handle as required per your solution. For example:- Redirect customer to thank you page if
chargeSuccess: true - Send the data to your internal system for additional processing and logic
Step 6: Go Live Checklist
Test Production Integration
Test the integration using a production ProductId with the production endpoint (prod.paysight.io)
Verify Setup
Verify the integration with your Paysight account manager to ensure everything is set up correctly
Next Steps
Payment API Reference
Explore the complete API documentation
Error Handling
Learn about error handling and troubleshooting
Testing Guide
Best practices for testing your integration