HiPay SDK
Library that enables you to interact with the Gateway and the Tokenization HiPay APIs.
Notes:
- This package respects the semver and the keep a changelog specifications.
- Every asynchronous methods can be used with async/await ES7 features, generators, or promises.
- Every methods listed but not specified here fit the HiPay specifications, so please refer to their documentation to know exactly how to provide them.
Install
npm i hipay
Available Methods
Hipay#init(credentials)
const credentials = username: String // (required) password: String // (required) passphrase: String mod: String // production || test (default: test);
Hipay#order(order)
Hipay#capture(transaction)
Hipay#refund(transaction)
Hipay#cancel(transaction)
Hipay#getFormUrl(order)
Hipay#getTransactionDetails(source)
const source = transactionId: String;
Or
const source = orderId: String;
Hipay#getTokenDetails(data)
Hipay#createToken(card)
Hipay#updateToken(data)
Hipay#isCallbackSignatureValid(query)
Hipay#isNotifySignatureValid(rawBody, receivedHash)
Example
const bodyParser = ;const hipay = ;const server = ;hipay;server;server;server;