0.0.1 • Published 4 years ago

mobilepay-subscriptions v0.0.1

Weekly downloads
15
License
MIT
Repository
github
Last release
4 years ago

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: ..,
    ..
});

API Reference

Find the generated API reference here

License

mobilepay-subscriptions is licensed under a MIT License.