How to Accept Bitcoin on Your Website
Registering and using CoinPip’s online Bitcoin payment engine to accept Bitcoin on your website is relatively simple. The basic process includes three main steps:
- Sign up for a CoinPip account
- Create a shopping cart key (API key)
- Paste the JavaScript code into your website
Step 1: Sign Up for a CoinPip Account
Creating a CoinPip account is quick and straightforward. You only need to provide the following information:
- Login name
- First and last name
- Email address
- Country
Selecting your country is important because your account will be linked to the local currency of that country. For example, if you select Indonesia, your account will be denominated in Indonesian Rupiah along with Bitcoin.
Simply follow the instructions sent via email to complete the setup process.
Step 2: Create a Shopping Cart Key
You can generate your shopping cart key (API key) through the CoinPip dashboard. Unless you are building a complex website, you usually do not need to fill in the callback field. The rest of the setup fields are straightforward and easy to understand.
Step 3: Paste JavaScript Code into Your Website
To integrate the payment gateway, paste the required JavaScript code into the <head> section of your webpage.
This script connects your website to the CoinPip payment gateway and allows customers to complete Bitcoin transactions directly from your site.
There are four important form fields used in the script:
- #customer-email – the customer’s email address used for sending receipts or invoices
- #amount – the payment amount in local currency (not Bitcoin)
- #reference – a transaction note or reference number
- #api_id – your unique API key generated from the CoinPip dashboard
These fields are submitted through a payment form on your website. When the user clicks the payment button, a Bitcoin payment window will open for the customer.
The #api_id should always be stored as a hidden field and inserted by the website owner, not by the customer, because it represents your merchant API key.
Once implemented, the payment gateway will display a secure Bitcoin payment interface for your customers to complete their transaction.
If you have any questions, feel free to contact us through our website.
