On-ramp and off-ramp with Onramper
Get fiat quotes, hand users off to the hosted Onramper widget, and look up checkout status from a WDK app.
Use the Onramper fiat module to quote a crypto purchase or sale and open the hosted checkout from your application. Your backend signs the widget URL. The user completes checkout with a payment provider through the widget.
This guide covers @onramper/wdk-protocol-fiat-onramper@0.2.0 for browsers, Node.js 20.19.0 or later, and Bare. React Native is outside the scope of this release.
Integration flow
- Ask Onramper to provision your partner account for the WDK channel and issue a publishable key.
- Configure a backend signing endpoint. Use the publishable key to discover asset codes and request quotes from the client.
- Call
buy()orsell()to get a signed URL and hand the user off to the widget. Review the final amounts and fees in checkout. - For status lookups, provision checkout sessions and add a backend endpoint that returns a fresh session token.
You can give the module a WDK account to supply the default recipient or refund address. The module reads the address without asking the account to sign.
Next Steps
Usage
Install the module, get a quote, and open checkout.
Configuration
Set up the signing and session callbacks.
API Reference
Check method inputs, results, and errors.