Widget Docs
The widget is delivered as a lightweight React component (soon vanilla JS). It connects to our PumpFun routing service, quotes swaps, and ships a single Solana transaction that swaps to SOL then settles in USDC.
npm install @payonpump/widget<PayOnPumpProvider apiKey="..." />import { PayOnPumpWidget } from "@payonpump/widget";
<PayOnPumpWidget
merchant="monkes.fun"
amountUsd={49}
tokenMint="5pumpFunMintAddress"
metadata={{ email, cartId }}
onStatus={(event) => console.log(event)}
/>Quote engine wired to PumpFun stub. Replace RPC + IDL with your own to go live.
Quote preview
0.82 SOL
Slippage ceiling: 0.34%
Everything you need before mainnet launch.
Create a merchant slug in the dashboard, upload a settlement wallet, and mint API keys.
Wrap your checkout with PayOnPumpProvider and render PayOnPumpWidget with the amount and PumpFun mint.
Subscribe to status events for analytics, fulfilment, and ledgering inside your product.
Reference
Typed, tree-shakeable, and ready for server components.
| Prop | Type | Required | Description |
|---|---|---|---|
| merchant | string | Yes | Slug from the dashboard that maps to custody vaults. |
| amountUsd | number | Yes | USD amount you expect to collect. Quote engine converts to SOL. |
| tokenMint | string | Yes | PumpFun mint address to source liquidity from. |
| metadata | Record<string, string> | No | App-specific payload forwarded to webhook events. |
| onStatus | (event) => void | No | Callback fired for quote + settlement lifecycle updates. |
Webhook
Triggered when the widget recomputes quotes or the user toggles slippage.
{
"event": "quote.updated",
"merchant": "monkes.fun",
"referenceId": "af28-quote",
"amountUsd": 49,
"estimatedSol": 0.812,
"slippageBps": 35
}Webhook
Fires after the Solana transaction confirms and the USDC sweep completes.
{
"event": "payment.settled",
"merchant": "monkes.fun",
"referenceId": "af28-quote",
"signature": "5j1...XYZ",
"vault": "payOnPumpVaultPubkey",
"usdValue": 49.01,
"status": "success"
}Need help?
We’ll review CPI flows, slippage policies, and custom liquidity routing.