1.2.0 • Published 10 months ago

akwaba-paiement-service v1.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

<<<<<<< HEAD

Akwaba api Service Pay

An Express.js middleware for handling payments via Mobile Money and debit card with the Bizao API. This package simplifies the integration of payments into your Node.js applications.

Installation

To install this package, use npm or yarn:

Installation

npm install BizaoService

How to use it

npm install

or

yarn install

Then import it in your file you want to apply:

with esmodule

import { BizaoService } from 'akwaba-paiement-service';

or with commonjs

const { BizaoService } = require('akwaba-paiement-service');

and finally apply it to the route or function.

for redirect to mobileMoney portal

app.post('/paiement-mobile-money', BizaoService.paiementMobileMoneyUrlRedirect);

for redirect to card portal

app.post('/paiement-carte', BizaoService.paiementCardUrlRedirect);

for verify status debit card

app.get('/status-debit-card', BizaoService.statusDebitCardUrl);

for verify status debit mobilemoney

app.get('/status-debit-mobile-money', BizaoService.statusDebitMobileMoney);

required for mobile

currency (string): La devise de la transaction (ex : "XOF"). amount (number): Montant de la transaction. return_url (string): URL de retour après le paiement. cancel_url (string): URL de redirection en cas d'annulation. operateur (string): Nom de l'opérateur Mobile Money (ex : "orange").

required for card

currency (string): La devise de la transaction (ex : "XOF"). amount (number): amount of transaction. return_url (string): URL de retour après le paiement. cancel_url (string): URL de redirection en cas d'annulation.

verify status

orderId (string): ID unique de la commande.

example request for mobile

{ "currency": "XOF", "amount": 5000, "return_url": "https://example.com/return", "cancel_url": "https://example.com/cancel", "operateur": "orange"

}

Service de paiement AKWABA-CI avec BIZAO

53e1572f869620210880ab32bda8e5eb97c7c0d0