node-concardis
Concardis payments in Node.js
Examples
const concardis = ;
Hosted tokenization page
To be able to use the Hosted Tokenization Page, you need to have at least one of the following options enabled:
- One Page Checkout (option ID: OPC)
- Alias Manager (option ID: REC1, REC2, RECX)
const payload = 'account.pspid': 'MyPspId' 'card.paymentmethod': 'CreditCard' 'parameters.accepturl': 'http://ya.ru/succ' 'parameters.exceptionurl': 'http://ya.ru/err'; const url = concardishostedUrlSmart test/*production*/'MyShaToken' payload/*, 'sha512'*/; console;
SHA signature
- SHA-256 (is used by default in
request.CollectionChecksum
)
const checksum = 'pspid': 'example' 'MyShaPhrase' /*, 'sha512'*/;console;
DirectLink (server-to-server)
Request a new order
const payload = alias: 'FE521799-50BB-47E6-AA10-B7B15CB3A0CC' amount: 7700 currency: 'EUR' cvc: '123' // or eci: 2/9; 9 is for reccurring transactions operation: 'SAL' orderid: '1234567890' pspid: 'MyPspId' pswd: 'MyApiUserPassword' userid: 'My-API-User'; concardisdirectlinkOrderSmart test/*production*/'MyShaToken' payload/*, 'sha512'*/ // NCERROR and NCSTATUS validation
Bulk Alias management via Batch
Alias creation
const alias = 'Customer123' 'John Doe' '4111111111111111' 1012 'VISA' 'JDoeSHOP'; const message = concardisaliasbatchEnvelopeSmart // two step process goes here, see the alias deletion section below
Alias deletion
const message = concardisaliasbatchEnvelopeSmart ; // step 1 (acquiring FILEID)concardisbatchCommandSmarttest/*production*/ // step 2concardisbatchCommandSmarttest/*production*/
Docs
- Alias Gateway
- Alias Manager (Tokenization)
- DirectLink (server-to-server)
- e-Commerce
- Hosted Tokenization Page
- Transaction Statuses and Errors
- Upload/download files with Batch (advanced)
Tests
npm install && npm run cover
License
The MIT License (MIT)
Copyright (c) 2016-2017 Kanstantsin Kamkou