wang4921 / bsc-pay

Binance Smart Chain - BNB Payment Gateway

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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?

  1. Our system generates a new wallet address for each payment.
  2. Your customer sends BNB to this wallet address.
  3. 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.)

image

  • 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}

View API Documentation 🔍

Resources

About

Binance Smart Chain - BNB Payment Gateway


Languages

Language:PHP 100.0%Language:Dockerfile 0.0%Language:Makefile 0.0%Language:Shell 0.0%