Crypto Payments using API
Last updated
Last updated
XGateway enables direct deposits without the necessity to use the Checkout page or pre-create an invoice. This simplified process, known as , has two key differences:
The exchange rates are not fixed.
No UI is provided by XGateway.
In order to create a channel, you need to make a POST
request to the corresponding API endpoint.
In case of a successful response, the data
property contains the address that you can display to your customer. You can also use the qrCodeURL
property to display the address in an easy-to-use format.
By default, the payment gateway links the created wallet to a customer forever. The created wallet can be used across all EVM compatible chains.
Remember to authorise the request with your key using x-api-key
header.
The best way to test the integration is to deposit native token on a test network. Proceed with the integration up to the point where the customer wallet is generated and returned to you. Make sure that deposits of ETH are enabled for your profile.
Send a portion of this ETH to the wallet, assigned to your customer.
Wait for the system to send you a callback about a successful deposit.
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.
Use faucets, like one, to get some ETH on Sepolia test network.
Create a channel for the customer for a specified currency.
Access to this endpoint requires a valid API key. The API key is sent in the x-api-key
header on requests.
Params:
Represents supported crypto currencies in the payment processing system.
Currencies:
BNB
- Binance CoinbUSDT
- Tether (pegged to USD), issued on BNB Smart Chain network (BEP20 token)BTC
- BitcoinETH
- EthereUSDC
- USD Coin (pegged to USD), issued on Ethereum network (ERC20 token)eUSDT
- Tether (pegged to USD), issued on Ethereum network (ERC20 token)FTN
- FasttokenPOL
- POLpUSDC
- USD Coin (pegged to USD), issued on Polygon network (ERC20 token)SOL
- SOLsUSDT
- Tether (pegged to USD), issued on Solana network (SPL token)tUSDC
- USD Coin (pegged to USD), issued on Tron network (TRC20 token)tUSDT
- Tether (pegged to USD), issued on Tron network (TRC20 token)wpUSDC
- wrapped USD Coin (pegged to USD), issued on Polygon network (ERC20 token)wpUSDT
- wrapped Tether (pegged to USD), issued on Polygon network (ERC20 token).