PrimeOnramp connects your users to trusted on-ramp providers so they can buy crypto quickly and fund apps, games, and online services – with a single, simple flow.
This is an example of how you might generate a redirect URL that includes
amount, currency, network, and a tracking sessionId.
// PHP pseudo-code
$sessionId = bin2hex(random_bytes(16));
$redirectUrl = "https://primeonramp.com/checkout.php"
. "?amount=50"
. "&fiatCurrency=USD"
. "&crypto=USDC"
. "&network=polygon"
. "&sessionId=" . urlencode($sessionId);
// Store $sessionId and user info in your DB
// Then redirect to your embedded on-ramp widget.
Once your on-ramp partner confirms the purchase via webhook or callback, you can credit the user’s account in your platform.
A clean flow designed for platforms that want to offer “Add Funds with Crypto” without building their own on-ramp infrastructure.
From your app or website, users click “Buy Crypto / Add Funds”. You send us the asset, amount and wallet address via URL params or API.
Users are routed through an integrated, licensed on-ramp provider who handles KYC/AML checks and payment processing.
Crypto is sent directly to the target wallet. We can notify your backend using callbacks/webhooks so you can credit in-app balances.
Stop stitching together separate integrations for every provider. PrimeOnramp is designed to sit in front of multiple on-ramps so you can adapt quickly as payment methods, countries, and providers change.
Availability of assets, networks, countries, and payment methods depends on each on-ramp provider’s policies and regulatory constraints.
Whether you operate a digital product, gaming platform, or online service, you can embed an “Add Funds” button and let users handle payments through fully hosted checkout experiences.
Start simple with redirect URLs and session IDs, then evolve to full API/webhook integrations as your volume grows.
<?php
// Example: Create a unique session and build a PrimeOnramp URL
$sessionId = bin2hex(random_bytes(16));
$params = [
'amount' => 50,
'fiatCurrency' => 'USD',
'crypto' => 'USDC',
'network' => 'polygon',
'walletAddress' => '0xYourUserWalletHere',
'sessionId' => $sessionId,
];
$baseUrl = 'https://primeonramp.com/checkout';
$checkoutUrl = $baseUrl . '?' . http_build_query($params);
// Save session details in your DB for later reconciliation.
// Then redirect the user:
header('Location: ' . $checkoutUrl);
exit;
// Example pseudo-code for a webhook/callback endpoint
// (e.g., https://primeonramp.com/webhook/provider.php)
$json = file_get_contents('php://input');
$data = json_decode($json, true);
$sessionId = $data['sessionId'] ?? null;
$status = $data['status'] ?? null;
$txHash = $data['txHash'] ?? null;
$crypto = $data['crypto'] ?? null;
$network = $data['network'] ?? null;
$amountFiat = $data['amountFiat'] ?? null;
// Look up $sessionId in your DB, verify signatures, etc.
// If status is "COMPLETED", credit the user in your system.
Exact callback formats will depend on each on-ramp provider’s API. The above is illustrative only.
Interested in integrating PrimeOnramp or partnering with us? Share your platform details, target countries, and expected volumes.
You can replace this area later with a real contact form or helpdesk widget.
Email: support@primeonramp.com
Business Inquiries: partners@primeonramp.com
Email addresses above are placeholders. Update them to your real support and business emails before going live.