Easily use the Freepay API with JavaScript.
npm i freepay.js
const freepay = require("freepay.js").default;
const client = new Freepay("your-api-key-from-dashboard");
// Get authorization example
const authorization = client
.getAuthorization("00000000-0000-0000-0000-000000000000")
.then((response) => {
// Do something with response.
})
.catch((error) => console.error);
// Or async
const authorization = await client.getAuthorization("00000000-0000-0000-0000-000000000000");
For other code examples check the wiki.
- Paymentlink
- Get authorization information
- Void authorization
- Get authorization capture
- Get authorization captures
- Capture authorization
- Get authorization credit
- Get authorization credits
- Credit authorization
- Get information about recurring payment agreement
- Delete recurring payment agreement
- Make recurring authorization