API Token
Payments Platform
Payin Mobile UPI Intent
This API is designed specifically for mobile applications to integrate a payment button, enabling a seamless redirection to the payment application installed on the user's device. Follow the outlined steps below for comprehensive guidance on integration and customization.
Follow the below steps to complete 🧭:
- Create Transaction: Begin by creating a transaction using the
API, ensuring all required parameters are filled, especially the accurate
order_id. - Redirection: You will get a redirection URL in the response, which is used to redirect back to the payment page where user can pay for the transaction.
- Get Transaction Status: Monitor the transaction status through the dedicated API, providing updates on the ongoing verification process and allowing you to stay informed about the current status.
Create Transaction 💳:
All private REST requests must contain the following headers:
X-Api-Key: A string representing your API key used for authentication.X-Api-Signature: A Base64-encoded signature used to verify the request. Refer to the Encryption & Signing section for more details.
Body Params
order_id (string, required): A unique identifier for the order.
requested_amount (string, required): The amount to be requested or charged from the customer.
purpose_of_payment (string, required): A brief description or reason for the payment.
email (string, required): The customer's email address.
mobile (string, required): The customer's mobile number.
Method: POST /api/order/create
'curl --location 'https://PayInfinity-api.s2s.rare-able.com/api/order/create' \
--header 'x-api-key: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJ0YW55YUBkb25uby5jb20iLCJpYXQiOjE3NDY4NTk4MzIsImV4cCI6MTc0OTQ1MTgzMn0.st96rkYiv3AFAzeX6v9eM-YRYsLURizUrgj3Y6CM9GY' \
--header 'x-api-signature: 0207cf1e1fa39f5d1280f54f4d3e50decaa5f06fb355a824e004850fe9366308' \
--header 'Content-Type: application/json' \
--data-raw '{
"order_id":"sampleorder123",
"requested_amount":20,
"purpose_of_payment":"api testing",
"email":"test@test.com",
"mobile":"7289710894"
}
Response
Choose an example:
application/json
🟢 200 - Result 🔴 400 - Result