how to accept bitcoin on your website

To register and start using CoinPip’s online bitcoin payment engine to accept bitcoin on your website is relatively easy. To list out briefly:

  1. Sign up for a CoinPip account
  2. Create a shopping cart key
  3. Paste javascript code to your website

Step 1: Sign up for a CoinPip Account

Signing up an account with CoinPip is relatively simple. All you need to enter is:

  1. Login Name
  2. First Name and Last Name
  3. Email Address
  4. Country

Selecting your country of business is important as it links to the respective currency to that country. If you select Indonesia, your account will be denominated in Indonesia Rupiah (and bitcoin of course).

Just following the instructions from the emails, you will be able to setup your account in a relatively short period of time.

Step 2: Create a shopping cart key

You can refer to this post in our docs, which shows you in detail how to setup your shopping cart key (api key). Just a tip, unless you are involved in developing a complex website, you do not need to fill in the field “callback”. Other fields listed should be quite easy to understand.

Step 3: Paste javascript to your website

Developers can view the post in the docs here.  Otherwise you view this section to implement the payment gateway without much customization required.

To illustrate how the payment gateway works, it’s best to use an example. You might need a slight knowledge of html forms and javascript. Otherwise it shouldn’t be that difficult.

Copy and paste the script below into your webpage’s <head>.

There are 4 important ‘#’ items you have to take note – #customer-email, #amount, #api-id, #reference. These fields are to be passed by the form that you or user fills in, something like:

#customer-email – This is the customer’s email that you will send an receipt/invoice to.
#amount  – This is the amount of local currency (not bitcoin) you will be charging your customer
#reference – This maybe some note or the reference details/numbers of the transaction
#api_id – This key is generated from step 2 above

These fields will be will be entered in your form, and by clicking the button generated by line 5, will pop up a payment window for the customer. However #api_id should be entered as a hidden field by your website, and not by your user because you’re the owner of the bitcoin shopping key (api id).

Here’s the example of our payment gateway. It will pop up something like below:

bitcoin online gateway picture

Sample picture of CoinPip’s bitcoin online gateway

And that’s it!

If you have any questions, please put your comments below or message us from our website.

Like our HowTo content? Sign up for our mailing list below. 🙂

* indicates required

Leave a Reply

Your email address will not be published. Required fields are marked *