← Back to Nanswap Pay
Widget & Payment Button
Embed a checkout widget or share a hosted payment link - no backend required.
Query Parameters
| Parameter | Required | Description |
|---|---|---|
| publicKey | Yes | Your Nanswap Pay public key from the dashboard |
| priceAmount | Yes | Invoice amount (e.g. 10) |
| priceCurrency | Yes | Fiat or crypto currency code (e.g. USD, EUR, XNO) |
| shopName | No | Your store name shown on the checkout page |
| defaultCurrency | No | Pre-select a crypto for the customer (e.g. XNO) |
| invoiceId | No | Your internal order reference, returned in webhooks |
| callbackUrl | No | URL to receive payment status webhooks (POST) |
Embeddable Widget
Drop an
<iframe> anywhere on your page for an inline checkout experience.<iframe
src="https://nanswap.com/pay/iframe-pay/pay?publicKey=YOUR_PUBLIC_KEY&priceAmount=10&priceCurrency=USD&shopName=My+Shop"
width="100%"
height="750px"
style="border:none"
allow="clipboard-write"
title="Nanswap Pay"
></iframe>Payment Button
A branded button that links to the hosted checkout page. Works anywhere HTML is supported.
<a href="https://nanswap.com/pay/invoice?publicKey=YOUR_PUBLIC_KEY&priceAmount=10&priceCurrency=USD&shopName=My+Shop"
target="_blank" rel="noopener">
<img src="https://images.nanswap.com/logo/pay-in-crypto-white.svg"
alt="Pay with Nanswap" style="width:200px">
</a>Or share the raw URL directly:
https://nanswap.com/pay/invoice?publicKey=YOUR_PUBLIC_KEY&priceAmount=10&priceCurrency=USD&shopName=My+ShopGet your public key
Sign in and open the Nanswap Pay section in your account dashboard.
Go to dashboard →