#bhavyacodes

1 messages · Page 1 of 1 (latest)

main lavaBOT
oblique mica
#

Hi there!

drowsy agate
#

I tried that, but then the payment_intent is null

oblique mica
drowsy agate
#

this is my code, its still null

  const _invoice = await stripe.invoices.create({
    //TODO: remove hard coded customer id
    customer: "cus_OnXprU9TmuNpqM",
    metadata: {
      meta: "data",
    },
    // transfer_data: {

    // }
  });

  const invoice = await stripe.invoices.finalizeInvoice(_invoice.id);

  console.log(invoice);
oblique mica
#

Can you share the invoice ID (in_xxx)?

drowsy agate
#

in_1NzxOmJG7qh0tIALX7FobfYG

oblique mica
#

The invoice amount is 0, so there's no thing to pay, which means its expected that there's no PaymentIntent.

drowsy agate
#

ohhhh, let me try updating the amount

oblique mica
drowsy agate
#

Thank you so much soma, you are really helpful