šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

node-wayforpay-library

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-wayforpay-library

WayForPay api library

0.1.4
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
Ā 
Created
Source

npm

WayForPay nodejs library

Installation

You can install the component using yarn:

npm install node-wayforpay-library

or

yarn add node-wayforpay-library

Usage

import WayForPayAPI from 'node-wayforpay-library';

const merchantAccount: string = 'YOUR_MERCHANT_ACCOUNT';
const merchantPassword: string = 'YOUR_MERCHANT_PASSWORD';

// Init api
const wfp = new WayForPayAPI({ merchantAccount, merchantPassword })

// Check status
const response = await wfp.regularPayments.status('ORDER_REFERENCE')

// Create payment
const payment = await wfp.regularPayments.create({
  regularMode: 'weekly', // once, daily, quarterly, weekly, monthly, halfyearly, yearly 
  amount: '100',
  dateBegin: 'DD.MM.YYYY',
  dateEnd: 'DD.MM.YYYY',
  orderReference: 'ORDER_REFERENCE',
  email: 'CLIENT_EMAIL'
})

// ...

Regular Payment methods

  • create: Create regular payment
  • status: Check regular payment status
  • suspend: To suspend the possibility of recurrent payments from the card, the merchant may pause the payment.
  • resume: In order to resume previously suspended recurrent payment
  • change: Change regular payment.

Purchase methods

  • generatePurchaseData: Generate data (JSON) for payment form with signature
  • generateVerifyData: Generate data (JSON) for card verification form with signature

Changelog

For detailed information on changes between versions, please refer to our changelog.

License

This project is licensed under the MIT License.

Author

Viacheslav Angel

FAQs

Package last updated on 28 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts