GithubHelp home page GithubHelp logo

isabella232 / bitpay-donation-sample-code Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitpay/bitpay-donation-sample-code

0.0 0.0 0.0 10 KB

Sample code for donation integrations

HTML 100.00%

bitpay-donation-sample-code's Introduction

Donation Template

Overview

This template is designed to allow a user to copy and paste into an existing website with minimal config to accept BitPay Donations.

Requirements

This plugin requires the following:

Installation

To install, copy and paste into an existing page (including css references, jquery, etc). You may need to adjust file paths.

Configuration

  • Change the header/footer placeholder text as needed
  • If there is a maximum donation amount, update the Javascript in the submitForm function.
  • 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_arr array, located in the updateCSS function.
  • 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 code that resembles the following
    • <input type="hidden" name="data" value = "<long string of characters">
  • Copy that value into the source code of this repo
  • Edit the redirectURL value to redirect users after a payment is made

Configuration is now complete.

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

License

GNU General Public License version 3 (GPLv3)

bitpay-donation-sample-code's People

Contributors

thejoshualewis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.