Socket
Socket
Sign inDemoInstall

futurepay-form-integration-js

Package Overview
Dependencies
1
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    futurepay-form-integration-js

[![GitHub release](https://img.shields.io/github/release/jamesmcroft/futurepay-form-integration-for-js.svg)](https://github.com/jamesmcroft/futurepay-form-integration-for-js/releases) [![npm](https://img.shields.io/npm/v/futurepay-form-integration-js.svg)


Version published
Weekly downloads
8
decreased by-66.67%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

FuturePay (Worldpay) Form Integration Library for JavaScript

GitHub release npm npm Downloads Build status Twitter Followers

The FuturePay (Worldpay) Form Integration Library for JavaScript is a library that allows you to integrate with FuturePay's hosted Form Integration method for recurring payments with JavaScript applications.

Install

npm install futurepay-form-integration-js

Usage

Initiating a recurring payment agreement

import { FuturePayService, FuturePayType, CurrencyCode, DelayUnit, RegularAgreement, RegularAgreementOption } from 'futurepay-form-integration-js';

var service = new FuturePayService();

var agreement = {
        instId: '1234567'
        futurePayType: FuturePayType.Regular,
        intervalUnit: DelayUnit.Month,
        intervalMult: 1,
        startDelayUnit: DelayUnit.Month,
        starDelayMult: 1,
        amount: 60,
        currency: CurrencyCode.GBP,
        normalAmount: 60,
        option: RegularAgreementOption.Default,
        cartId: '1234',
        testMode: 100
    } as RegularAgreement;

/*
 * Calling this method will automatically submit the data to FuturePay and redirect the user to FuturePay's Form Integration page.
 */
await service.initiateAgreement(agreement);

Contributing 🤝🏻

Contributions, issues and feature requests are welcome!

Feel free to check the issues page. You can also take a look at the contributing guide.

We actively encourage you to jump in and help with any issues!

Support this project 💗

As many developers know, projects like this are built and maintained in spare time. If you find this project useful, please Star the repo.

Author

👤 James Croft

License

This project is made available under the terms and conditions of the MIT license.

Keywords

FAQs

Last updated on 26 Mar 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc