Options
All
  • Public
  • Public/Protected
  • All
Menu

mobilepay-subscriptions

MobilePay Subscriptions

Easily integrate with MobilePay Subscriptions without entering an agreement with a 3rd party PSP.

Usage

Install the package

npm install --save mobilepay-subscriptions 

Integrate

import { Client as MPSClient } from "mobilepay-subscriptions";

const client = MPSClient({
    discoveryEndpoint: ..,
    apiEndpoint: ..,
    merchant: {
        ..
    },
    application: {
        ..
    },
});

await client.initialize();
const response = await client.createAgreement({
    external_id: ..,
    amount: ..,
    ..
});

License

mobilepay-subscriptions is licensed under a MIT License.

Generated using TypeDoc