Creates a new payment session for a customer. This endpoint generates a payment URL that you can redirect your customer to complete the payment.
The customer can pay using various methods including cryptocurrency (via wallet connect or QR code) or credit cards (debit/credit cards)
You can optionally provide a customer email to create or link the payment to an existing user account.
API key authentication. Include your API key in the X-Suby-Api-Key header:
X-Suby-Api-Key: your_api_key_hereUnique identifier of the subscription product the customer is purchasing
"pro_abc123xyz"
Email address of the customer. If the customer doesn't exist, a new user account will be created automatically
"customer@example.com"
URL to redirect the customer after successful payment completion (required)
"https://your-app.com/success"
URL to redirect the customer if they cancel the payment (required)
"https://your-app.com/cancel"
Your internal reference ID for tracking this payment in your system (e.g., order ID, invoice number)
255"order_789xyz"
Custom key-value pairs to store with the payment. This data will be returned in webhooks
{
"orderId": "12345",
"source": "mobile_app",
"customField": "value"
}