chapa-node-beta1
v2.0.1
Published
This chapa node js package
Readme
chapa
Usage
import Chapa from "chapa";
const chapa = new Chapa("key");
// If you're inside an async function, you can use await: const paymentDetails = { // fill in your payment details here }; const initiatePayment = await chapa.initiatePayment(paymentDetails);
// If you're not inside an async function, you can use .then(): chapa.initiatePayment(paymentDetails) .then(initiatePayment => { console.log(initiatePayment); }) .catch(error => { console.error(error); });
