0.0.5 • Published 5 months ago

modem-pay v0.0.5

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
5 months ago

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.

0.0.5

5 months ago

0.0.4

6 months ago

0.0.3

6 months ago

0.0.2

7 months ago

0.0.1

7 months ago