mobilepay-subscriptions
v0.0.1
Published
Integrate easily with MobilePay Subscriptions
Downloads
4
Readme
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.