BSC Pay (Simple BNB Payment Gateway)
I like to use Binance Smart Chain, do you? You can use my simple payment gateway if you need to get paid with BSC. (Of course, it also supports other ETH networks.)
How Does It Work?
- Our system generates a new wallet address for each payment.
- Your customer sends BNB to this wallet address.
- Cron checks the balance of the wallet and approves the payment. Our system transfers funds from generated wallet address to your payout wallet address after approval.
You can try our demo to understand how it works: https://bg.je/projects/bsc-payment/example_form.php
Prerequisites
- PHP 7.0+
- PHP GMP Extension
How to Install?
- Create a MySQL database.
- Download this repository and upload files to your web server.
- Go to your website with a web browser. You will see the installation wizard. Enter the database details and your BSC wallet address. (If you want to use Binance Smart Chain, you don't need to change anything in Network Settings.)
- After the installation, your API key and cron URL will appear on the screen. Set up a cron command that runs every minute and makes a request to the cron URL. Example Cron Command:
* * * * * curl {cronUrlAddress}