modem-pay
v1.1.1
Published
A TypeScript SDK for integrating with the Modem Pay payment gateway, enabling seamless payment processing and financial services in your applications.
Downloads
490
Maintainers
Readme
Modem Pay TypeScript SDK
The official TypeScript SDK for integrating Modem Pay's payment services.
Installation
Install the SDK using npm:
npm install modem-payQuickstart
Initialize the SDK and authenticate with your API key:
import ModemPay from "modem-pay";
const modemPay = new ModemPay("your_api_key");
// Example: Create a payment intent
async function createPayment() {
const paymentIntent = await modemPay.paymentIntents.create({
amount: 1000,
currency: "GMD",
customer: "customer_id",
});
console.log(paymentIntent);
}
createPayment();Documentation
For detailed usage, visit the Modem Pay Docs.
