
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
EBANX is the market leader in e-commerce payment solutions for International Merchants selling online to Brazil. This module enables you to integrate EBANX with Typescript compatibility.
npm i ebanx-ts --save
// Require the module
import ebanxTs from "ebanx-ts";
// Construct with mandatory parameters integrationKey, testMode and httpMode.
const eb = new ebanxTs("1231000", true, true);
You can change the following settings:
*integrationKey: your integration key. It will be different in test and production modes.
*testMode: enable or disable the test mode. The default value is _true_.
To create a new API request, just call one of the following functions
on the ebanx object and supply it with the request parameters:
* eb.cancel()
* eb.capture()
* eb.direct()
* eb.documentBalance()
* eb.exchange()
* eb.print()
* eb.query()
* eb.refund()
* eb.refundOrCancel()
* eb.request()
* eb.token()
* eb.zipcode()
You can check your settings by accessing the settings module:
* eb.settings
* eb.settings.integrationKey
* eb.settings.testMode
And change the settings by the following methods:
* eb.setKey()
* eb.setTestMode()
* eb.setHttp()
import ebanxTs, { models } from "ebanx-ts";
const eb = new ebanxTs("integration_key", true, true);
const direct: models.Direct = {
payment: {
name: "Juan Garcia",
email: "juangarciamexico@example.com",
address: "Oyono",
street_number: "882",
city: "Hermosillo",
state: "SO",
zipcode: "48822",
country: "mx",
phone_number: "0405777687",
payment_type_code: "visa",
merchant_payment_code: "949284c1474",
currency_code: "MXN",
instalments: 1,
amount_total: 100,
creditcard: {
card_number: "4111111111111111",
card_name: "Juan Garcia",
card_due_date: "12/2021",
card_cvv: "123"
}
}
};
/* METHOD 01 */
const payment = async () => {
const data = await eb.direct(direct);
console.log(data);
};
/* METHOD 02 */
eb.direct(direct)
.then((res: any) => console.log(res))
.catch((err: any) => console.log(err));
FAQs
Remake of Ebanx NodeJs library. (Added support to TS)
The npm package ebanx-ts receives a total of 6 weekly downloads. As such, ebanx-ts popularity was classified as not popular.
We found that ebanx-ts 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.