Payments API
The Payments API allows you to create, verify, and retrieve payment sessions programmatically.Initialize Payment
Creates a new payment session and returns a hosted checkout URL.Authentication: Requires a Public Key (
cp_pk_test_ or cp_pk_live_)Request Body
Example Request
Response
Response Fields
Verify Payment
Retrieves the payment status and key details. Use this to verify that a payment has been completed.Authentication: Requires a Secret Key (
cp_sk_test_ or cp_sk_live_)IP Whitelisting: This endpoint respects IP whitelist configuration.Path Parameters
Example Request
Response
Response Fields
Verify Payment by Reference
Retrieves the payment status and key details using theclientReference you passed during payment creation.
Authentication: Requires a Secret Key (
cp_sk_test_ or cp_sk_live_)IP Whitelisting: This endpoint respects IP whitelist configuration.Path Parameters
Example Request
Response
Same response as Verify Payment.Get Payment Details
Retrieves complete details of a payment including customer info, transaction hashes, and timestamps.Authentication: Requires a Secret Key (
cp_sk_test_ or cp_sk_live_)IP Whitelisting: This endpoint respects IP whitelist configuration.Path Parameters
Example Request
Response
Response Fields
List Payments
Retrieves a paginated list of your payments.Authentication: Requires a Secret Key (
cp_sk_test_ or cp_sk_live_)IP Whitelisting: This endpoint respects IP whitelist configuration.
