2.0.1 • Published 1 year ago

chapa-node-beta1 v2.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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); });

2.0.1

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago