Payments
Create a payment
Creates a payment for an order or subscription. For initial payments, card details and a callback URL are required. For subsequent payments on as_presented subscriptions, the card from the last successful payment is reused, and request_id, amount, and currency are required instead.
Either order_id or subscription_id must be provided, but not both.
post/api/v1/payment
Request
- Base URLhttps://api.crossborder.jiopay.co.in
- URLhttps://api.crossborder.jiopay.co.in/api/v1/payment
- AuthHTTP bearer
Request body
Example request
{
"order_id": "order_68c00b7btsthf",
"subscription_id": "sub_5JU9yv0lGSUP",
"card": {
"holder_name": "John Doe",
"number": "4111111111111111",
"expiry_month": "09",
"expiry_year": "30",
"cvv": "123"
},
"callback_url": "https://server.yoursite.com/payment/callback",
"request_id": "unique_request_id_123",
"amount": 1500,
"currency": "USD",
"notes": {
"invoice_ref": "INV-2026-001",
"project": "Alpha"
}
}Response
Created
Example response
{
"payment_id": "payt_691eeb9aV79Uk",
"next_steps": [
{
"payload": {
"url": "https://secure.crossborder.jiopay.co.in?paymentId=payt_691eeb9aV79Uk&authToken=ey...&redirectUrl=encoded_url",
"interval_in_ms": 5000
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.