BitPal is a cryptocurrency payment gateway for merchants around the world that provides a variety of options for businesses. We aim to create alternative payment options for customers and businesses around the world with ready-to-use solutions such as e-commerce plugins(coming soon) and a payment processing APIs.

Prerequisites

- Code editor of your liking

- Configure WebSockets

- BitPal API key

API key

You'll need a key to access the service. Click the button below to request for a key

WebSocket

You will need websockets to connect to the BitPal server. The script below will give you an idea on how to set it up on your web browser.

For Android please visit

Payment Gateway (WEB)

var url = 'wss://bitpal.africa:1080/bitcoin/YOUR-API-KEY'

try {

var connection = new WebSocket(url);

connection.onopen = () => {

//Cryptocurrency payment method

var payment = {

'coin': 'btc', // Specify coin used for payments

'amount': 'AMOUNT-TO-BE-PAID-HERE' // Enter amount to be paid here

}

connection.send(JSON.stringify(payment))

}

connection.onmessage = function(e) {

console.log(e.data);

}

connection.onclose = () => {

//Connection closed

console.log('closed');

}

connection.onerror = error => {

//Error occured

console.log('error');

}

}catch(e){

//Error connecting to the server

console.log('error getting connection')

}

Available Coins
SymbolCoin
BTCBitcoin
ETHEthereum
DASHDash
AEÆternity