An open-source SDK
empowering you to directly accept
cryptocurrency and stablecoin payments
free from centralized fintech infrastructure
StablePay is a fully decentralized solution for online payments. When the StablePay widget is embedded in a website, the widget interacts directly with smart contracts on blockchains, with no intermediary servers.
For more information about StablePay, please visit StablePay's Main Repository.
This repository contains a demo merchant website using the StablePay widget.
This demo website allows customers to choose products and add them to a shopping cart. They can then proceed to checkout and pay using StablePay.
You can try the demo at: https://demo.stablepay.stability.nexus/ .
Look at the source code in this repo. The most relevant files are:
- checkout-modal.tsx - here you can see how the StablePay widget was embedded in a checkout flow.
- package.json - here you can see how to declare the
stablepay-sdkas a dependency, so that it can be easily imported.
