perfectbiller_node
v1.0.1
Published
Perfectbiller.com is developed to bring combined solution to challenges that accompanies electronic billing, sending and receiving payments online: we are actually here to bridge the gap, providing secure environment to send and receive funds, accompanied
Downloads
2
Maintainers
Readme
Welcome to perfectbiller_node
install using npm i perfectbiller_node
or yarn add perfectbiller_node
secret_key: Login to your Perfect Biller dashboard and click on Api Keystore Menu to obtain your secret key, but for the purpose of testing, you can use PB-DEMO-SECRET as your secret key.
Verifying Transaction Using Transaction Reference:
new Perfectbiller_node("key").verify("transactionToken")
.then(()=> {
// this will return a response object
// {
// status: "success",
// resp: "Approved",
// successful_verifications : 1,
// transaction_ref: "PB-1559445533",
// transaction_datetime: "2019-06-02 04:21:14",
// see full response below
}).catch(()=> {
// This will return error response
})
Response:
{
"status": "success",
"resp": "Approved",
"successful_verifications" : 1,
"transaction_ref": "PB-1559445533",
"transaction_datetime": "2019-06-02 04:21:14",
"transaction_details": {
"merchant_id": "PB-DEMO",
"total": "6800",
"cur": "NGN",
"notify_url":"http://www.mywebsite.com/notify",
"customer_email": "[email protected]",
"customer_phone": "2348012345678",
"merchant_ref": "ABCD-1234",
"ip": "192.168.54.2",
"memo":"Payment for Oz-Stores",
"items": [
{
"name": "Fancy Beautiful handbag",
"description": "zena handbag 78S",
"price": "1800"
},
{
"name": "Donzim Shoes",
"description": "Italian male shoe",
"price": "5000"
}
]
}
}