adding stripe section, parts of dashboard
This commit is contained in:
@@ -6,22 +6,22 @@ const stripe = new Stripe(process.env.STRIPE_SECRET);
|
||||
|
||||
export default class PaymentsHandler {
|
||||
|
||||
static async danceTicket(req, res) {
|
||||
static async newSubscription(req, res) {
|
||||
try {
|
||||
const session = await stripe.checkout.sessions.create({
|
||||
mode: "payment",
|
||||
payment_method_types: ["card"],
|
||||
metadata: {
|
||||
productId: "austin_winter_ball_2025_ticket"
|
||||
productId: "50_month_sub"
|
||||
},
|
||||
line_items: [
|
||||
{
|
||||
price_data: {
|
||||
currency: "usd",
|
||||
product_data: {
|
||||
name: "Hyperia Winter Ball"
|
||||
name: "Monthly Subscription"
|
||||
},
|
||||
unit_amount: 3500
|
||||
unit_amount: 5000
|
||||
},
|
||||
quantity: 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user