Card Submission API Quickstart
Learn how to integrate with the Paysight Card Submission API for processing payments and customer information
This guide covers the core card submission endpoint that allows you to process payments by submitting card and customer information for a specific product.
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
(test.paysight.io)
during development and testing phases.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. |
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:
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
Await Approval