
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
@unify-payment/node
Advanced tools
UnifyPayment is a TypeScript package that provides a unified interface for integrating with multiple payment providers, such as Stripe, LemonSqueezy, and more. With UnifyPayment, developers can easily switch between different payment providers without hav
UnifyPayment is a TypeScript package that provides a unified interface for integrating with multiple payment providers, such as Stripe, LemonSqueezy, and more. With UnifyPayment, developers can easily switch between different payment providers without having to rewrite their payment logic.
To install the package, run the following command:
npm install @unify-payment/node
// Stripe
const stripe = new UnifyPayment.Stripe(process.env.STRIPE_SECRET_KEY!);
const redirect = await stripe.getCheckoutUrl(stripePayload);
// LemonSqueezy
const lemon = new UnifyPayment.LemonSqueezy(process.env.LEMON_SECRET_KEY!);
const redirect = await lemon.getCheckoutUrl(lemonsqueezyPayload);
// Paypal
const paypal = new UnifyPayment.Paypal(process.env.PAYPAL_SECRET_KEY!);
const redirect = await paypal.getCheckoutUrl(lemonsqueezyPayload);
// SSLCommerz
const ssl = new UnifyPayment.SSLCommerz({
apiUrl: process.env.SSLCOMMERZ_API_URL!,
store_id: process.env.SSLCOMMERZ_STORE_ID!,
store_passwd: process.env.SSLCOMMERZ_SECRET_KEY!,
});
const redirect = await ssl.getCheckoutUrl(sslCommerzPayload);
// Stripe
const stripe = new UnifyPayment.Stripe(process.env.STRIPE_SECRET_KEY!);
const sign = c.req.header("Stripe-Signature");
if (!sign) throw new Error("No Signature");
const webhookEvent = await stripe.verifySignature({
signature: sign,
secret: "PUT YOUR WEBHOOK SECRET HERE",
body: await c.req.text(),
});
if ("error" in webhookEvent) throw new Error(webhookEvent.error.message);
switch (webhookEvent.event.type) {
case "checkout.session.async_payment_succeeded":
break;
default:
break;
}
// LemonSqueezy
const lemon = new UnifyPayment.LemonSqueezy(process.env.LEMON_SECRET_KEY!);
const sign = c.req.header("X-Signature");
if (!sign) throw new Error("No Signature");
const webhookEvent = await lemon.verifySignature({
signature: sign,
secret: "PUT YOUR WEBHOOK SECRET HERE",
body: await c.req.text(),
x_event: c.req.header("X-Event-Name")!,
});
if ("error" in webhookEvent) throw new Error(webhookEvent.error.message);
switch (webhookEvent.type) {
case "order_refunded":
break;
default:
break;
}
We welcome contributions to UnifyPayment! If you'd like to help improve this package, here's how you can contribute:
Fork the Repository: Start by forking the UnifyPayment repository on GitHub.
Clone Your Fork: Clone your fork to your local machine for development.
git clone https://github.com/shakibhasan09/unify-payment
Create a Branch: Create a new branch for your feature or bug fix.
git checkout -b feature/your-feature-name
Create: apps
directory and setup a nodejs project inside the apps
directory.
Add Dependencies: Add @unify-payment/node
as a dependencies to the apps/nodejs-project/package.json
file.
Make Changes: Implement your changes or improvements to the codebase.
Test Your Changes: Ensure that your changes don't break any existing functionality and add tests if necessary.
Commit Your Changes: Commit your changes with a clear and descriptive commit message.
git commit -m "Add a brief description of your changes"
Push to Your Fork: Push your changes to your GitHub fork
git push origin feature/your-feature-name
Submit a Pull Request: Go to the original UnifyPayment repository and submit a pull request with a clear description of your changes.
A special thanks to Piyush Garg (@piyushgargdev) for suggesting the idea behind this package. Piyush is a talented developer and content creator who shares valuable insights and ideas in the world of software development. His suggestion was the spark that led to the creation of UnifyPayment, aiming to simplify payment integrations for developers.
We appreciate Piyush's contribution to the developer community and encourage you to check out his YouTube channel for more inspiring content and innovative ideas in the tech space.
FAQs
UnifyPayment is a TypeScript package that provides a unified interface for integrating with multiple payment providers, such as Stripe, LemonSqueezy, and more. With UnifyPayment, developers can easily switch between different payment providers without hav
The npm package @unify-payment/node receives a total of 3 weekly downloads. As such, @unify-payment/node popularity was classified as not popular.
We found that @unify-payment/node demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.