#127.0.0.1

1 messages · Page 1 of 1 (latest)

wary socketBOT
west harbor
#

45 is just a test number of course

abstract spoke
west harbor
#

Ah, that makes sense. So something like:

const session = await stripe.checkout.sessions.create({
    line_items: [
      {
        price_data: {
          currency: "usd",
          product_data: {
            name: "[redacted]",
          },
          unit_amount: Math.round(total * 100)
        },
        quantity: 1,
      },
    ],
    payment_intent_data: {
      metadata: {
        order_id: 45,
      },
     }
    customer_email: customerInfo.email,
    mode: "payment",
    success_url: `${process.env.HOSTNAME}/checkout?success=true`,
    cancel_url: `${process.env.HOSTNAME}/checkout?canceled=true`,
  });
abstract spoke
#

Yes it looks good to me