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

Sign up for a CoinPip account Create a shopping cart key 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:

Login Name First Name and Last Name Email Address 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>.

Paste code in <head> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 <script type = "text/javascript" > function ProceedBitcoinPayment ( ) { var email = "" ; var amount = 0.00 ; var api_id = "" ; var reference = "" ; email = $ ( '#customer-email' ) . val ( ) ; amount = parseFloat ( $ ( '#amount' ) . val ( ) ) ; api_id = $ ( '#api_id' ) . val ( ) ; reference = $ ( '#reference' ) . val ( ) coinpip . RequestPayment ( api_id , // Your API ID { Title : 'Pay with bitcoins' , FiatAmount : amount , CustomerEmail : email , Reference : reference } ) ; } </script>

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:

Sample Form 1 2 3 4 5 Email : <input type = "text" id = "email" > <br> Amount: <input type = "text" id = "amount" > <br> Reference: <input type = "text" id = "reference" > <br> API ID: <input type = "hidden" id = "api_id" value = "8dbbde0bfd564c059f795fde25e60464" > <br> <input style = "width: 270px;" type = 'image' src = "https://wallet.coinpip.com/bb.png" value = 'Pay with bitcoins' onclick = "ProceedBitcoinPayment()" />

#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:

And that’s it!

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



