A TypeScript SDK for integrating with the Modem Pay payment gateway, enabling seamless payment processing and financial services in your applications.
The official TypeScript SDK for integrating Modem Pay's payment services.
Install the SDK using npm:
``bash`
npm install modem-pay
Initialize the SDK and authenticate with your API key:
`typescript
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();
``
For detailed usage, visit the Modem Pay Docs.