New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

next-stripe-helper

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-stripe-helper - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

2

package.json
{
"name": "next-stripe-helper",
"version": "1.0.10",
"version": "1.0.11",
"description": "Easily add Stripe boilerplate code to Nextjs, like webhook handling, and subscription updates. This package provides a thin wrapper around the Stripe API, and makes integrating Stripe and NextJS a lot faster!",

@@ -5,0 +5,0 @@ "main": "index.js",

# next-stripe-helper
`next-stripe-helper` is a module designed to simplify the integration of Stripe's functionality into Next.js applications. Whether you're looking to process payments, manage customers, or handle subscriptions, this utility aims to streamline those interactions. This utility is perfect for developers building e-commerce platforms, subscription-based services, or any other application that requires payment functionalities within the Next.js ecosystem.
`next-stripe-helper` is a module designed to simplify the integration of Stripe's functionality into Next.js applications. Whether you're looking to process payments, manage customers, or handle subscriptions, this utility aims to streamline those interactions.
This utility is perfect for developers building e-commerce platforms, subscription-based services, or any other application that requires payment functionalities within a JS or TS ecosystem.
Includes a smart webhook handler that will automatically keep your database up to date with current plans, pricing, and subscriptions.
## Installation

@@ -45,3 +49,3 @@

1. **Create Checkout Session**
### Create Checkout Session

@@ -70,3 +74,3 @@ Create a checkout session with Stripe.

2. **Create Checkout Session for Saving Card**
### Create Checkout Session for Saving Card

@@ -270,2 +274,5 @@ Create a checkout session with Stripe for the purpose of saving a card.

This will use the current payment method by default.
Customer must have an existing subscription.
```javascript

@@ -280,2 +287,3 @@ const subscriptionDetails = await changeSubscriptionPlan('subscription_id', 'new_plan_id')

### Get Detailed Information About a Subscription

@@ -282,0 +290,0 @@

@@ -42,3 +42,3 @@ import { Stripe } from 'stripe';

mode: 'setup',
success_url: `${successUrl}?session_id={CHECKOUT_SESSION_ID}`,
success_url: successUrl,
cancel_url: cancelUrl,

@@ -45,0 +45,0 @@ payment_method_types: ['card'],

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc