Base URLs
| Environment | URL |
|---|---|
staging | https://staging-pay.getpartna.com/v4/pay/onramp |
production | https://pay.getpartna.com/v4/pay/onramp |
Required query parameters
| Parameter | Required | Description |
|---|---|---|
amount | Yes | Amount the user will pay in local currency |
from_currency | Yes | Local currency the user is paying with, such as NGN, KES, or GHS |
to_currency | Yes | Crypto the user should receive, such as USDT, USDC, BTC, or ETH |
to_network | Yes | Network to deliver the crypto on, such as tron, celo, or ethereum |
address | Yes | Wallet address that will receive the crypto |
merchant | Yes | Your Partna merchant username |
reference | No | A hex string transaction reference |
Registration modes
The widget supports two merchant-controlled registration modes:| Mode | Behavior |
|---|---|
open | Users can begin registration through the widget flow and complete onboarding later |
closed | Only users you have already created can continue in the widget flow |
open, you can use Register Account to create a pending registration. If your registration mode is closed, create the user up front with Create Account.
How it works
Generate the redirect URL
Build a URL using the correct environment URL and the required query parameters.
User completes payment
The user follows the payment instructions in the hosted flow and pays the local currency amount.
Receive webhook updates
Partna sends
Onramp webhook events as the transaction moves through each state. See Webhooks for signature verification and endpoint setup.Build the redirect URL
Example redirect URL
https://staging-pay.getpartna.com/v4/pay/onramp instead.
Transaction lifecycle
Partna emitsOnramp webhooks with these statuses:
| Status | Meaning |
|---|---|
pending | The onramp request has been created and is awaiting user payment |
received | Partna has received the user’s payment |
processing | Conversion or transfer is currently being processed |
completed | The crypto delivery is complete |
Sample webhook payloads
pending
received
processing
completed
When to use the hosted widget
Use the hosted widget when you want:- A faster integration with less frontend work
- Partna to handle the payment instructions UI
- A simple redirect-based flow from your product