Card Payments
The Card Payments API enables merchants to securely accept payments from customers using Visa, Mastercard, and other supported bank cards. SplashPay provides a hosted payment page that securely captures card details and processes payments through a PCI DSS compliant payment gateway.Hosted Checkout
Customers are redirected to a secure payment page hosted by SplashPay’s payment provider. Card details are never transmitted through your servers.
Endpoint
Base URL
Request Body
Example Request
Successful Response
Redirect Customer
After receiving the response, redirect your customer to the URL provided in thepayment_gateway_url field.
Note
The payment_gateway_url may be Base64 encoded. Decode it before redirecting the customer if required by your integration.
Example
Payment Status
Webhook Payload
Error Responses
Invalid Request
Authentication Failed
Duplicate Request
Best Practices
1
Use HTTPS
Always provide secure HTTPS URLs for
redirect_url and cancel_url.2
Generate a Unique Reference
Every payment request should use a unique merchant reference.
3
Use Idempotency Keys
Reuse the same
Idempotency-Key only when retrying the same request.4
Handle Webhooks
Do not rely solely on the customer’s browser redirect. Update payment status using webhook notifications.
5
Store the SplashPay Reference
Store both the merchant reference and the provider reference for reconciliation and customer support.
