Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
This is the officially supported Node.js library for using Conekta's APIs.
The library supports all APIs under the following services:
API | Description | Service Name | Supported version |
---|---|---|---|
Payments API | Our classic integration for online payments. Current supported version | Payments API | v2.1.0 |
For more information, refer to our documentation.
Install the Node.JS package:
npm install --save conekta
Alternatively, you can download the release on GitHub.
To update the Node.JS package:
npm update conekta
Check for breaking changes on the releases page.
In order to submit http request to Conekta API you need to initialize the client. The following example makes a order request:
import { CustomersApi, Configuration, Customer, CustomerResponse } from "conekta";
const apikey = "key_xxxxx";
const config = new Configuration({ accessToken: apikey });
const client = new CustomersApi(config);
const customer: Customer = {
name: "John Constantine",
email: "frank@google.com",
phone: "+5215555555555"
}
client.createCustomer(customer).then(response => {
const customerResponse = response.data as CustomerResponse;
console.log(customerResponse.id);
}).catch(error => {
console.error("here", error);
});
Navigate to conekta-node folder and run the following commands.
npm run build
npm run test
We encourage you to contribute to this repository, so everyone can benefit from new features, bug fixes, and any other improvements. Have a look at our contributing guidelines to find out how to raise a pull request.
If you have a feature request, or spotted a bug or a technical problem, create an issue here.
For other questions, contact our Support Team.
This repository is available under the MIT license.
FAQs
OpenAPI client for conekta
The npm package conekta receives a total of 1,182 weekly downloads. As such, conekta popularity was classified as popular.
We found that conekta demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.