UNPKG

modem-pay

Version:

A TypeScript SDK for integrating with the Modem Pay payment gateway, enabling seamless payment processing and financial services in your applications.

39 lines (25 loc) 706 B
# Modem Pay TypeScript SDK The official TypeScript SDK for integrating Modem Pay's payment services. ## Installation Install the SDK using npm: ```bash npm install modem-pay ``` ## Quickstart 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(); ``` ## Documentation For detailed usage, visit the [Modem Pay Docs](https://docs.modempay.com).