A Payment Session is a temporary, secure, and hosted interaction between your platform and Redpin, designed to facilitate cross-border payments.
The OAuth 2.0 Authenticated Create Payment Session API allows you to create a new hosted payment session. You provide the payment details (amount, items, recipients, etc.) and session configuration (like allowed domains), and receive a unique session URL in response. This URL can be embedded in your app or website to launch the hosted payment flow in a secure, guided interface.
Payment sessions are time-bound and will automatically expire at the specified expires_at timestamp. Once expired, the session URL becomes inaccessible and can no longer be used to complete the payment. If the payment is not completed before the session expires, a new session must be created again to initiate the payment.
For real-time payment status updates, use the Webhook Subscription API to subscribe to the PAYMENT STATUS event.
OAuth 2.0 Bearer token authentication. This API uses OAuth 2.0 Client Credentials flow. Please refer to the Authentication section for detailed information on how to obtain and use your OAuth credentials.
The API caller’s internal customer ID for the person initiating the payment. It must be the same reference used when invoking the Pre-eligibility check API.
A unique reference identifier for this payment session in your system. This reference is used to uniquely identify and track this specific payment.
Validation Rules:
customer_id); duplicate references for the same customer will be rejected. Hosted sessions are third-party, so this applies.The date by which the amount must be credited to all recipient bank accounts. Must follow the ISO 8601 format (YYYY-MM-DD) and be at least 5 calendar days from the current date.
Purpose of the transaction. Must be one of the predefined values. Validation Rules:
List of recipients who will receive payment funds. Independent of items, allowing flexible fund distribution.
Validation Rules:
List of payment items describing what is being paid for in this session. Each item represents a line item (property, invoice, booking, service fee, etc.).
Validation Rules:
Origins (or app identifiers) from which the hosted payment session is expected to be launched. Also used as a proxy to determine whether OTP based verification is required.
Each entry must be one of the following:
OTP enforcement logic:
Notes:
The exact date and time (in ISO 8601 format) when the session becomes invalid.
A hosted payment page URL that displays Redpin’s secure payment flow. This URL can be integrated into your mobile app (via webview) or website (via redirect or iframe), allowing users to review payment details and complete the cross-border transaction.