New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

redsys

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redsys

Node implementation of Redsys (Sermepa) payment gateway API

latest
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

Description

RedSys (http://www.redsys.es) Node.js gateway implementation.

Usage

var redsys = new Redsys({
  "merchant": {
    "code": "MERCHANT_CODE",
    "terminal": "1",
    "titular": "TITULAR",
    "name": "NAME",
    "secret": "qwertyasdf0123456789"
  },
  "language": "auto",
  "test": true
});

form_data = redsys.create_payment({
  total: ORDER_TOTAL,
  currency: "EUR",
  order: "ORDER ID",
  description: "ORDER DESCRIPTION",
  data: "CART DATA",
  transaction_type: 0,
  redirect_urls: {
    callback: "CALLBACK URL",
    return_url: "OK URL",
    cancel_url: "KO URL"
  }
});

Test

grunt test

Fake credit card (test only)

Number: 4548812049400004
Date: 12/12
CVV2: 123
CIP: 123456

Keywords

redsys

FAQs

Package last updated on 12 May 2014

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