Embeddable Widget
Show the checkout inside your own page so customers never leave your site. One
<iframe>, no backend required.1. Paste the snippet
Replace
YOUR_PUBLIC_KEY and set the price.<iframe
src="https://nanswap.com/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>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 coin for the customer (e.g. XNO). |
| invoiceId | No | Your internal order reference, returned in webhooks. |
| callbackUrl | No | URL that receives payment status webhooks (POST). |
| successUrl | No | Where the customer is sent after paying. |
| theme | No | light (default), dark, or auto to follow the visitor's device. |
Live preview
Get your public key
Sign in and open the Nanswap Pay section in your account dashboard.
Go to dashboard →
