Skip to content

Commit 5ba85ad

Browse files
Added changes for switching environments
1 parent ea9d6ab commit 5ba85ad

File tree

3 files changed

+363
-275
lines changed

3 files changed

+363
-275
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
token.txt

README.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@ To install, copy and paste into an existing page (including css references, jque
2525
* Click **Donation Buttons**
2626
* If you do not see this, you will need to contact our compliance team at [[email protected]](mailto:[email protected])
2727
* Click **Generate**
28-
* Scroll down and look for code that resembles the following
29-
* ```<input type="hidden" name="data" value = "<long string of characters">```
30-
* Copy that value into the source code of this repo
28+
*Scroll down and look for the following ```<input type="hidden" name="data" value = "<long string of characters">```
29+
30+
* Scroll down to the bottom of the html and look for ```$env = "test"```
31+
* If you are in `test` mode, do not change this value, as it is the default
32+
* Copy the value from the `Donation Button` source code to either the `$test_token` and/or `$prod_token`
3133
* Edit the **redirectURL** value to redirect users after a payment is made
3234

3335
**Configuration** is now complete.
34-
35-
* *note*: if you are using the `test.bitpay.com` to verify functionality, the **form action** should point to `https://test.bitpay.com/checkout`. If you are in a live environment, it should be changed to `https://bitpay.com/checkout` with a **production** token.
36-
3736

3837
## License
3938

0 commit comments

Comments
 (0)