Easily integrate with MobilePay Subscriptions without entering an agreement with a 3rd party PSP.
npm install --save mobilepay-subscriptions
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: ..,
..
});
Find the generated API reference here
mobilepay-subscriptions is licensed under a MIT License.