WeeShip

Components

ButtonCheckout

Opens a Stripe Checkout session. Perfect for a one-time payment or a subscription.Set mode="payment" for one-time payments or mode="subscription" for recurring payments like a monthly membership.By default the user must be logged in to checkout to prevent potential disputes like a fraudulent payment with a fake email. You can change that in the /api/stripe/create-checkout/route.js API route This component is used to create Stripe subscriptions and one-time payments.

A Button Checkout component for WeeShip boilerplate

page.js

1import ButtonCheckout from "@/components/ButtonCheckout";

Updated on: Tuesday, September 5, 2023

this guide