One script tag, no build step, real x402 settlement on Avalanche Fuji testnet. Two files, two jobs. Pick whichever fits where you're dropping it.
For slotting next to pricing plans you already have.
Real, not a mockup: it calls this site's own /api/pay. You'll need a browser wallet (Core or MetaMask) on Avalanche Fuji to actually pay.
<div
data-suiteas-pay
data-merchant="Your Product"
data-amount="0.12"
data-pay-url="https://your-suiteas-deploy.example/api/pay"
></div>
<script src="https://your-suiteas-deploy.example/widget/suiteas-pay.js"></script>data-merchant*Name shown in the modal, e.g. "PropertyUp".
data-pay-url*Full URL to a Suiteas /api/pay endpoint. On someone else's site this must be the absolute deployed URL. Same-origin "/api/pay" only works when the widget is hosted on this app itself.
data-amountStarting amount in USD, e.g. "0.12". Visitors can edit it down to $0.001. Defaults to $0.01.
data-merchant-logoLogo URL shown next to the merchant name. Falls back to a monogram if omitted.
data-coin-nameTicker shown next to the amount. Defaults to "dNZD".
* required
A whole payment section: the modal on the left, a “how it works” explainer on the right, black background. Drop it straight into a page, no pricing plans required.
Same real widget as Option 1, same /api/pay. Just the full-section layout.
<div
data-suiteas-pay-section
data-merchant="Your Product"
data-amount="0.12"
data-pay-url="https://your-suiteas-deploy.example/api/pay"
data-title="Pay with Koha."
></div>
<script src="https://your-suiteas-deploy.example/widget/suiteas-pay-section.js"></script>Everything from Option 1 works here too, plus:
data-titleSection heading next to the "how it works" steps. Defaults to "Pay with Koha."
data-subtitleOptional line under the heading.
Skip the script tag and import SuiteasPayModal or SuiteasPaySection directly from the Modal Paywall/export package instead. Same components, same real settlement, full control over props and styling.