1.2.0 • Published 6 months ago
@ponchopay/pp-nodejs v1.2.0
pp-nodejs
Tools to integrate PonchoPay on NodeJS
Installation
Install it from npm:
npm i @ponchopay/pp-nodejsYou can also use your favourite package manger like yarn or pnpm.
Usage
This package declares the following functions:
- createToken: This function allows the creation of tokens for the initialisation endpoints.
- createJWT: This function allows the creation of JWTs for the payment manipulation endpoints.
And the Client class which provides the following methods:
- initiatePayment: This method allows to initialise a payment in PonchoPay.
- initiateSubscription: This method allows to initialise a subscription in PonchoPay.
- updatePaymentMethod: This method allows to change the Payment Method properties.
- refundPaymentMethod: This method allows to fully or partially refund a Payment Method.
- cancelPayment: This method allows to cancel a Payment.
Development
Linting and formatting
To scan the project for linting and formatting errors, run
npm run lintTo automatically fix linting and formatting errors, run
npm run formatTesting
To ensure the project is bug-free, run
npm run test