
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.
This SDK helps you connect to the Poynt API from your Node.js apps. You can easily get/create business information, subscribe to webhooks, and send cloud messages to your terminal app.
After you've signed up for a Poynt developer account, check out our API reference or our developer guides!
Install this package:
npm install poynt --save
You can connect to the Poynt API by passing either a filename or a string containing your PEM-encoded private key you downloaded from Poynt.net. If region param is not set, the SDK uses services.poynt.net endpoint. If you need to hit services-eu.poynt.net, you need to pass region: 'eu'.
var poynt = require("poynt")({
// region: 'eu',
applicationId: "urn:aid:your-application-id",
filename: __dirname + "/key.pem",
});
or
var poynt = require("poynt")({
applicationId: "urn:aid:your-application-id",
key: "-----BEGIN RSA PRIVATE KEY-----\n.....\n-----END RSA PRIVATE KEY-----",
});
Then, make a request signed with your app private key:
poynt.getBusiness(
{
businessId: "00000000-0000-0000-0000-000000000000",
},
function (err, business) {
if (err) {
// deal with your error
} else {
// do something with business
}
}
);
We'll handle all the request signing, token refresh, etc. for you!
tokenizeCardchargesendCloudMessagesendRawCloudMessagesendPaymentBridgeMessagegetHookscreateHookgetHookdeleteHookgetBusinessgetBusinessByDeviceIdgetMerchantPaymentAccountgetStoregetOrdersgetOrdercreateOrdercompleteOrdergetTransactionsgetTransactionvoidTransactionrefundTransactioncreateTransactiongetCustomersgetCustomergetCatalogsgetCataloggetFullCatalogcreateCatalogcreateFullCatalogupdateCatalogdeleteCataloggetCategorycreateCategorylookupCategoriesdeleteCategoryupdateCategorygetInvoicesgetInvoicecreateInvoicesendInvoiceRemindercancelInvoicegetProductsgetProductsSummarylookupProductsgetProductcreateProductdeleteProductupdateProductgetReportscreateReportgetTaxesgetTaxcreateTaxdeleteTaxupdateTaxgetBusinessUsersgetBusinessUsergetBusinessApplicationgetBusinessApplicationStatusgetBusinessApplicationAccountgetBusinessApplicationOrdersgetBusinessApplicationProfileThe most basic use case is just entering an amount and charging:
poynt.charge(
{
action: "SALE",
amounts: {
currency: "USD",
transactionAmount: 500,
orderAmount: 500,
},
businessId: "84fa5bf5-bd51-4653-80de-ce46348f7659",
token: "...token...",
},
function (err, transaction) {
if (err) {
// deal with your error
console.log(err);
} else {
// do something with transaction
console.log(transaction);
}
}
);
Many other fields are accepted – including address, phone, and references. The following code makes a charge, fetches the full transaction, and then voids it.
poynt.charge(
{
action: "SALE",
address: {
line1: "858 University Ave",
line2: "",
city: "Palo Alto",
territory: "CA",
countryCode: "US",
postalCode: "94301",
},
amounts: {
currency: "USD",
transactionAmount: 500,
orderAmount: 500,
},
businessId: "84fa5bf5-bd51-4653-80de-ce46348f7659",
emailReceipt: true,
phone: {
ituCountryCode: "1",
areaCode: "234",
localPhoneNumber: "5678901",
},
receiptEmailAddress: "charles@example.com",
references: [
{
customType: "WEBSITE_ID",
id: "123456",
type: "CUSTOM",
},
{
customType: "CHANNEL_ORDER_ID",
id: "abcdef",
type: "CUSTOM",
},
],
sourceApp: "Online Store",
token: "...token...",
},
function (err, transaction) {
if (err) {
// deal with your error
return console.log(err);
}
console.log("Transaction processed", JSON.stringify(transaction, null, 2));
// get the transaction
poynt.getTransaction(
{
businessId: "84fa5bf5-bd51-4653-80de-ce46348f7659",
transactionId: transaction.id,
},
function (err, transaction) {
if (err) {
// deal with your error
return console.log(err);
}
console.log(
"Transaction fetched",
JSON.stringify(transaction, null, 2)
);
// void the transaction
poynt.voidTransaction(
{
businessId: "84fa5bf5-bd51-4653-80de-ce46348f7659",
transactionId: transaction.id,
},
function (err, voidedTransaction) {
if (err) {
// deal with your error
return console.log(err);
}
console.log(
"Transaction voided",
JSON.stringify(voidedTransaction, null, 2)
);
}
);
}
);
}
);
registerApplePayMerchantunregisterApplePayMerchantgetApplePayMerchantgetApplePayDomainAssociationFileFAQs
Poynt Node.js SDK
The npm package poynt receives a total of 158 weekly downloads. As such, poynt popularity was classified as not popular.
We found that poynt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 15 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.

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.