https://github.com/dpecos/node-redsys
Node implementation of Sermepa payment gateway API
https://github.com/dpecos/node-redsys
Last synced: about 1 month ago
JSON representation
Node implementation of Sermepa payment gateway API
- Host: GitHub
- URL: https://github.com/dpecos/node-redsys
- Owner: dpecos
- Created: 2014-02-20T14:03:46.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-12T08:51:16.000Z (about 11 years ago)
- Last Synced: 2024-04-24T01:02:09.943Z (about 1 year ago)
- Language: CoffeeScript
- Size: 246 KB
- Stars: 2
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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