0.0.5 • Published 5 months ago
modem-pay v0.0.5
Modem Pay TypeScript SDK
The official TypeScript SDK for integrating Modem Pay's payment services.
Installation
Install the SDK using npm:
npm install modem-pay
Quickstart
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.