Payment gateway for NANO
npm install accept-nano-clientyarn add accept-nano-client
ES Modules / TypeScript
Directly in Browser, as a UMD module
After the accept-nano-client script is loaded there will be a global variable called acceptNano, which you can access via
Creating a Payment Session
To be able to initiate the payment process, you must create a new payment session.
// 1- create a new payment session// 2- register event listeners to shape-up your logic based on session events.
Presenting the Payment Overlay
After creating your session and attaching the event listeners, you can follow one of those options to proceed with the payment flow.
Option 1: Create a Payment Through Client
If you want to create and verify an accept-nano payment in your client application, you can use this option.
After the payment is created, accept-nano-client will automatically proceed to the verification step.
Option 2: Verify a Payment Through Client
If you create an accept-nano payment in another context (such as your application's backend), you can use this option to perform the verification in your client application.
- Please open an issue if you have a question or suggestion.
- Don't create a PR before discussing it first.
Who is using accept-nano-client in production?
Please send a PR to list your site if accept-nano is helping you to receive NANO payments.