Crypto Payment Processor API
Generate unique crypto deposit addresses, show exact crypto amounts and QR codes, forward payments to your wallet, and reconcile orders by webhook.
Base URL
Checkout URL
Important notes
- Always check the minimum transaction value before showing payment instructions.
- Create one unique wallet per invoice by using a callback URL with a unique query value.
- Return plain text ok from callback endpoints to avoid repeated callback attempts.
Create Wallet
https://api.onramp-pay.com/crypto/btc/wallet.php?address=bc1qx9t2l3pyny2spqpqlye8svce70nppwtaxwdrp4&callback=https%3A%2F%2Fmerchant.com%2Fcallback%3Finvoice_id%3D75478385547922074
Creates a unique crypto receiving wallet for the selected ticker. Any supported payment above the minimum is forwarded to your merchant wallet and a callback is sent to your endpoint.
Parameters
Example response
{
"address_in": "3KCktixcBTWtvLSiUosrW4jTVS1e1wwSbU",
"callback_url": "https://merchant.com/callback?invoice_id=75478385547922074",
"ipn_token": "payment_tracking_token"
}Estimate Blockchain Fees
https://api.onramp-pay.com/crypto/btc/fees.php
Returns the estimated forwarding blockchain fee for the selected ticker. Use this before showing final payment instructions where minimums or fees matter.
Example response
{
"status": "success",
"estimated_cost": "0.00000738000",
"estimated_cost_currency": {
"USD": "0.45",
"EUR": "0.40",
"GBP": "0.34"
}
}Coin Info and Minimum
https://api.onramp-pay.com/crypto/erc20/usdc/info.php
Returns the coin name, minimum transaction amount, and fiat prices for one ticker. Payments below the minimum may not be forwarded.
Example response
{
"coin": "USD Coin",
"minimum": 6.65,
"prices": {
"USD": "1.0000452870",
"EUR": "0.8625910624",
"GBP": "0.7602014257"
}
}List All Coins and Minimums
https://api.onramp-pay.com/crypto/info.php
Returns all supported networks and coins with ticker identifiers, logo URLs, and minimum transaction values.
Example response
{
"btc": {
"coin": "Bitcoin",
"ticker": "btc",
"minimum_transaction_coin": 0.0001064
},
"polygon": {
"usdc": {
"coin": "USDC",
"ticker": "usdc",
"minimum_transaction_coin": 1.33
}
}
}Create Wallet Hosted Mode
https://api.onramp-pay.com/crypto/hosted/wallet.php
Creates a hosted multi-coin payment session so the customer can choose from supported crypto networks and tokens.
Parameters
Example response
{
"status": "success",
"payment_id": "hosted_payment_id",
"payment_url": "https://checkout.onramp-pay.com/crypto/pay/hosted_payment_id",
"ipn_token": "payment_tracking_token"
}Hosted Mode
https://checkout.onramp-pay.com/crypto/pay.php?payment_id=hosted_payment_id
Opens the hosted multi-coin checkout page where the customer can select the crypto asset and network.
Example response
HTTP 302 redirect or hosted checkout page
Convert Fiat Value to Crypto
https://api.onramp-pay.com/crypto/btc/convert.php?from=usd&value=109.78
Converts a fiat invoice amount into the crypto amount the customer should send.
Parameters
Example response
{
"status": "success",
"value_coin": "0.00179614",
"exchange_rate": "0.0000163613"
}Generate QR Code
https://api.onramp-pay.com/crypto/btc/qrcode.php?address=3Ki3iFugZT1uFVZJSKwtT9sJ6C8BNPxigp&amount=0.00179614
Generates a base64 QR image for a generated receiving wallet. The amount parameter is optional and may be ignored by some wallets.
Parameters
Example response
{
"status": "success",
"qr_code": "base64_png_image",
"payment_uri": "3Ki3iFugZT1uFVZJSKwtT9sJ6C8BNPxigp"
}Check Payment Status
https://api.onramp-pay.com/crypto/payment-status.php?ipn_token=payment_tracking_token&ticker=bep20%2Fusdt
Checks crypto payment status for support or manual review. Production order updates should rely on callback events.
Parameters
Example response
{
"status": "paid",
"value_coin": "110.53260075",
"txid_in": "0x6623113f0997aae7d6a37ac2062cc2c2038f01626b94bb4d16faf8ef149bd04d",
"txid_out": "0x1b0b28120be665c7f5c0810a92e9939f8fc6883a3e8273c5995eee6bcaec9c99",
"coin": "bep20_usdt"
}Callback Event
https://merchant.com/callback?invoice_id=75478385547922074&coin=btc&value_coin=0.00000546&txid_in=5d305...&txid_out=bc16...&address_in=bc1qx...&pending=0&value_forwarded_coin=0.0000053781
Onramp Pay calls your callback URL when funds are detected or confirmed. Original parameters are preserved, and transaction data is appended.
Parameters
Example response
Respond with plain text: ok
