This template is designed to allow a user to copy and paste into an existing website with minimal config to accept BitPay Donations.
This plugin requires the following:
- A BitPay merchant account (Test and Production)
To install, copy and paste into an existing page (including css references, jquery, etc). You may need to adjust file paths.
-
Change the header/footer placeholder text as needed
-
If there is a maximum donation amount, update the Javascript in the
submitFormfunction. -
To add more/less pre-defined rows, copy and paste the existing row/columns, and update the values as needed.
- you will also need to add/remove these values in the
$payment_arrarray, located in theupdateCSSfunction.
- you will also need to add/remove these values in the
-
Login to your BitPay dashboard (Test or Production)
-
Click Payment Tools on the left
-
Click Donation Buttons
- If you do not see this, you will need to contact our compliance team at [email protected]
-
Click Generate *Scroll down and look for the following
<input type="hidden" name="data" value = "<long string of characters"> -
Scroll down to the bottom of the html and look for
$env = "test"- If you are in
testmode, do not change this value, as it is the default
- If you are in
-
Copy the value from the
Donation Buttonsource code to either the$test_tokenand/or$prod_token -
Edit the redirectURL value to redirect users after a payment is made
Configuration is now complete.