modem-pay
Version:
A TypeScript SDK for integrating with the Modem Pay payment gateway, enabling seamless payment processing and financial services in your applications.
36 lines (35 loc) • 1.35 kB
TypeScript
import TransfersResource from "../resources/transfer";
import CouponResource from "../resources/coupon";
import CustomersResource from "../resources/customer";
import MandatesResource from "../resources/mandate";
import PaymentIntentsResource from "../resources/payment-intent";
import PaymentLinksResource from "../resources/payment-link";
import SessionsResource from "../resources/session";
import TransactionsResource from "../resources/transaction";
import WebhooksResource from "../resources/webhook";
import { ModemPayConfig } from "../types";
export default class ModemPay {
private apiKey;
private readonly maxRetries;
private readonly timeout;
private _customers;
private _sessions;
private _paymentLinks;
private _paymentIntents;
private _paymentMethods;
private _transfers;
private _coupons;
private _transactions;
private _webhooks;
private _mandates;
constructor(apiKey: string, config?: ModemPayConfig);
get webhooks(): WebhooksResource;
get transactions(): TransactionsResource;
get transfers(): TransfersResource;
get customers(): CustomersResource;
get coupons(): CouponResource;
get sessions(): SessionsResource;
get paymentLinks(): PaymentLinksResource;
get paymentIntents(): PaymentIntentsResource;
get mandates(): MandatesResource;
}