62
How I Made My Own BNB Payment Gateway with PHP?
I like to use Binance Smart Chain and sometimes I need to get paid with using it. I used to send my BSC wallet address to the customer manually. But when there are many customers, it became difficult to do manually. Then I thought, Automate the boring stuff!
These gateways are useful, especially if you need to accept multiple cryptocurrencies. But I just need BNB. So, I won't pay commission for that! π
We'll create a unique wallet address for each payment. Our system will approve the payment when the customer sends enough BNB to the generated wallet. And after approval, it will transfer the funds to my payout wallet address.
I used web3.php and ethereum-tx libraries in my project.
After several hours of fighting with the ETH network, my system is ready.
Check the demo: https://bg.je/projects/bsc-payment/example_form.php
Source code: https://github.com/bgokcol/bsc-pay
Source code: https://github.com/bgokcol/bsc-pay
62