astrapay
v0.1.0
Published
AstraPay SDK for integrating M-Pesa STK Push in Node.js applications.
Maintainers
Readme
const AstraPay = require("astrapay");
const client = new AstraPay({ consumerKey: "YOUR_KEY", consumerSecret: "YOUR_SECRET", shortcode: "174379", passkey: "YOUR_PASSKEY", callbackUrl: "https://yourdomain.com/callback", });
client.pay({ phone: "254712345678", amount: 10 }) .then(console.log) .catch(console.error);
