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

ParameterRequiredDescription
publicKeyYesYour Nanswap Pay public key from the dashboard.
priceAmountYesInvoice amount (e.g. 10).
priceCurrencyYesFiat or crypto currency code (e.g. USD, EUR, XNO).
shopNameNoYour store name shown on the checkout page.
defaultCurrencyNoPre-select a coin for the customer (e.g. XNO).
invoiceIdNoYour internal order reference, returned in webhooks.
callbackUrlNoURL that receives payment status webhooks (POST).
successUrlNoWhere the customer is sent after paying.
themeNolight (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 →