Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@notchpay/payment
Advanced tools
Readme
Nodejs API wrapper for Notch Pay.
npm install @notchpay/payment
Authenticate
// Require the library
var notchpay = require("@notchpay/payment")("business_key");
Allows you to perform transactions on your nodejs and JavaScript applications.
// Initiate transaction
await notchpay
.transaction()
.init(500, "usd", {
name: "Chapdel KAMGA",
email: "hello@chapdel.me",
})
.then((r) => {
console.log("success", r.data);
})
.catch((e) => {
console.log("error", e);
});
// Check transaction
await notchpay
.transaction()
.check("transaction_reference")
.then((r) => {
console.log("success", r.data);
})
.catch((e) => {
console.log("error", e);
});
// Complete transaction
await notchpay
.transaction()
.complete("transaction_reference", "notchpay", {
number: 123456789,
code: 12345,
})
.then((r) => {
console.log("success", r.data);
})
.catch((e) => {
console.log("error", e);
});
This method offers you the possibility to complete the transaction in a new window. It is necessary to follow our instructions.
// Complete transaction
await notchpay
.transaction()
.complete("transaction_reference", "notchpay", {
number: 123456789,
code: 12345,
})
.then((r) => {
var _transaction = notchpay
.transaction()
.completeWithWindow(r.data.authorization_url, r.data.transaction);
var watcher = setInterval(() => {
console.log(_transaction);
if (_transaction.status != null && _transaction.status != "pending") {
clearInterval(watcher);
// your code here
/*switch (transaction.status) {
}*/
}
}, 2000);
})
.catch((e) => {
console.log("error", e);
});
FAQs
Notch Pay API wrapper.
The npm package @notchpay/payment receives a total of 1 weekly downloads. As such, @notchpay/payment popularity was classified as not popular.
We found that @notchpay/payment 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.