Alternative Payment Methods using Checkout
Last updated
Last updated
Please read page before starting. The invoice creation API uses several parameters that need explanation.
XGateway supports deposits with preliminary creation of with a fixed exchange rate. This is the recommended integration form, which providers merchants with ready-made UI for deposits with crypto assets.
In order to create a Fixed Rate Invoice in the payment processing system, you need to make a POST
request to the Invoice API endpoint.
The XGateway provides one , which automatically defines a corresponding payment method based on the input parameters provided by the merchant. Below are examples of a payload to create an invoice for various Alternative Payment Methods.
The system will skip all XGateway intermediate pages and redirect the customer directly to the payment method only if all required data is provided.
For Papara the amount must be a multiple of 50 (example: 150, 200, 250 TRY).
The request returns a link to a correspondingly configured Checkout page.
The Checkout page will request from a customer any data missed in the initial request and required to create an invoice.
The Checkout page will eventually redirect the customer to the local payment system like Papara or UPI.
Remember to authorise the request with your key using x-api-key
header.
The default lifetime of an invoice is 15 minutes.
The invoice creation API validates the amount value. The minimum and maximum amount values may differ based on the payment provider used for this exact invoice.
Use the following validation as a safe measure. Contact the support team if your currency is not listed or you want to confirm the limits.
An invoice will not be created, if the amount exceeds the limits.
The easiest option to use is to setup INR account (even if you do not plan to use it) - because we have a partner with stable sandbox in INR. For INR flow, the pages of local payment system, such as UPI, provide a button to simulate a deposit.
For the time being no sandbox is available for TRY. The Demo environment is connected to a separate Papara production instance.
When a customer makes a deposit using a cryptocurrency, XGateway detects the transaction and sends a deposit callback to the merchant. Below is an example of such a callback. For detailed information, please visit.
Due to security risks, merchants must use our to request transaction details. XGateway is not liable for issues caused by relying only on callback data.
To confirm the callback is valid, please use the .
You can test direct crypto deposits in the.