{"id":20305805,"url":"https://github.com/bitpay/bitpay-donation-sample-code","last_synced_at":"2025-03-04T07:22:08.774Z","repository":{"id":66192372,"uuid":"297424332","full_name":"bitpay/bitpay-donation-sample-code","owner":"bitpay","description":"Sample code for donation integrations","archived":false,"fork":false,"pushed_at":"2025-02-18T20:55:33.000Z","size":20,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-18T21:38:44.392Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitpay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-21T18:17:12.000Z","updated_at":"2025-02-18T20:55:37.000Z","dependencies_parsed_at":"2023-02-25T06:45:59.074Z","dependency_job_id":null,"html_url":"https://github.com/bitpay/bitpay-donation-sample-code","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitpay-donation-sample-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitpay-donation-sample-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitpay-donation-sample-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitpay-donation-sample-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitpay","download_url":"https://codeload.github.com/bitpay/bitpay-donation-sample-code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241801994,"owners_count":20022565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T17:09:56.716Z","updated_at":"2025-03-04T07:22:08.769Z","avatar_url":"https://github.com/bitpay.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Donation Template\n\n## Overview\n\nThis template is designed to allow a user to copy and paste into an existing website with minimal config to accept BitPay Donations.\n\n# Requirements\n\nThis plugin requires the following:\n\n* A BitPay merchant account ([Test](http://test.bitpay.com) and [Production](http://www.bitpay.com))\n\n# Installation\n\nTo install, copy and paste into an existing page (including css references, jquery, etc).  You may need to adjust file paths.\n\n# Configuration\n\n* Change the header/footer placeholder text as needed\n* If there is a **maximum donation amount**, update the Javascript in the `submitForm` function.\n* To add more/less pre-defined rows, copy and paste the existing row/columns, and update the values as needed.\n\t* you will also need to add/remove these values in the `$payment_arr` array, located in the `updateCSS` function.\n* Login to your BitPay dashboard ([Test](http://test.bitpay.com/dashboard) or [Production](http://www.bitpay.com/dashboard))\n* Click **Payment Tools** on the left\n* Click **Donation Buttons**\n\t* If you do not see this, you will need to contact our compliance team at [compliance@bitpay.com](mailto:compliance@bitpay.com)\n* Click **Generate**\n\t*Scroll down and look for the following ```\u003cinput type=\"hidden\" name=\"data\" value = \"\u003clong string of characters\"\u003e```\n\n* Scroll down to the bottom of the html and look for ```$env = \"test\"```\n\t* If you are in `test` mode, do not change this value, as it is the default\n* Copy the value from the `Donation Button` source code to either the `$test_token` and/or `$prod_token`\n* Edit the **redirectURL** value to redirect users after a payment is made\n\n**Configuration** is now complete.\n\n## License\n\n[GNU General Public License version 3 (GPLv3)](https://github.com/opencart/opencart/blob/master/license.txt)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitpay%2Fbitpay-donation-sample-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitpay%2Fbitpay-donation-sample-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitpay%2Fbitpay-donation-sample-code/lists"}