#richard_20727

1 messages ยท Page 1 of 1 (latest)

stiff shadowBOT
tranquil torrent
#

That sounds like the payment method hasnt been provided, can you share an example?

novel spruce
#

hey synthrider! I couldn't agree more! the thing that's weird to me is we get the same message on other paymentIntents but they seem to go through fine later.

Is it ok if the example I share is a production account?

tranquil torrent
#

Yes, but please just share the payment intent or request ID

novel spruce
#

paymentIntentID pi_3O2G5NBEVXB9vy3z03Z2Uzt0
this one got the error โ˜๏ธ
this one right after didn't ๐Ÿ‘‡
pi_3O2G5mBEVXB9vy3z0fXSqYo7

stiff shadowBOT
novel spruce
#

๐Ÿ™‚

tranquil torrent
#

One was confirmed and one was not

#

There was never a confirm request for pi_3O2G5NBEVXB9vy3z03Z2Uzt0

novel spruce
#

ok thank you,

https://stripe.com/docs/js/payment_intents/confirm_payment
I was reading these docs and confirmed in my code that we're running confirmPayment:

await stripe.confirmPayment({
    elements,
    confirmParams: {
      return_url: vaild_return_url,
      receipt_email: emailAddress,
      payment_method_data: {
        billing_details: {
          email: emailAddress
        }
      }
    },
  });

But i wonder if I should be doing

await stripe.confirmCardPayment('{PAYMENT_INTENT_CLIENT_SECRET}', {
    payment_method: {
      card: cardElement,
      billing_details: {
        email: emailAddress,
      },
    },
  })

https://stripe.com/docs/js/payment_intents/confirm_card_payment

tranquil torrent
#

Either one should be valid

#

But for this payment that never happened