
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
#dibs A simple wrapper for the DIBS Payment Services API.
$ npm install dibs
Please note the following:
var dibs = require('dibs');
The HMAC key can be set per request or globally. To set a default HMAC Key use:
dibs.hmacKey = '355a26 . . . 35c48d';
With the exception of pingSatellite, all methods recieve the same arguments and returns a promise.
dibs.[methodName](options, hmacKey)
.then(callback);
options - object with the request parameters.
options object, for each of the available methods.hmacKey - the HMAC key to encode the request or null (if set globally).
callback - a callback function that receives a data object. The data object contains the answer from DIBS.
This service performs the first part of a credit card transaction (the authorisation). The authorisation includes credit and debit card control and reservation of the required amount for later capture.
dibs.authorizeCard(options, hmacKey);
Please note: the cvc, expMonth and expYear are mandatory fields in the options object, despite being listed as optional in the API docs.
This service performs a credit and debit card check and saves the credit card information for recurring payments.
dibs.createTicket(options, hmacKey);
Please note: the cvc, expMonth and expYear are mandatory fields in the options object, despite being listed as optional in the API docs.
Make a recurring payment using a ticket previously created via the createTicket service.
dibs.authorizeTicket(options, hmacKey);
The second part of any transaction is the capture process. Usually this take place at the time of shipping the goods to the customer.
dibs.captureTransaction(options, hmacKey);
The cancelTransaction service cancels an authorization. If the acquirer used supports reversals, the system automatically sends one such along and thereby releasing any reserved amounts.
dibs.cancelTransaction(options, hmacKey);
The refundTransaction service refunds a captured transaction and transfers the money back to the card holders account.
dibs.refundTransaction(options, hmacKey);
The ping service checks if the satellite system is up and running.
dibs.pingSatellite(function (err, data){ ... });
dibs uses the q library. It allows the following syntax:
dibs.authorizeCard(cardInfo)
.then(function(data){
...
return dibs.captureTransaction(transInfo);
})
.then(function onSuccess(data){
...
}, function onError(err){
...
});
FAQs
a simple wrapper for the DIBS Payment Services
We found that dibs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.