← Back to Nanswap Pay

Widget & Payment Button

Embed a checkout widget or share a hosted payment link - no backend required.

Query 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 crypto for the customer (e.g. XNO)
invoiceIdNoYour internal order reference, returned in webhooks
callbackUrlNoURL 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+Shop

Get your public key

Sign in and open the Nanswap Pay section in your account dashboard.
Go to dashboard →