#samsara-paymentelement-error

1 messages ยท Page 1 of 1 (latest)

barren hamletBOT
halcyon storm
#

๐Ÿ‘‹ @old scroll for next time it's a lot easier if you just keep the same thread instead of having to reopen one

#

I'm not entirely sure I understand the question here either

#

samsara-paymentelement-error

old scroll
#

Hi Koopa, thank you. This is a different question so I opened up a new thread, would you prefer I keep the same one?

#

To give context, I have the stripe payment element, and when I call stripe.confirmPayment, I can either get back a paymentIntent, or an error, like so:

      const { paymentIntent, error } = await stripe.confirmPayment({
        elements,
        confirmParams: {
          return_url: `${window.location.href}`
        },
        redirect: 'if_required'
      });

The error will tell me info about the cause of the error based on various scenarios. I'm wondering if there's some resource I can find about this particular error message:

code: "incomplete"
message: "Please fill in your card details."
type: "validation_error"

I noticed it happens when a user opens up the apple pay modal and then clicks out of it, but I'm wondering if there are any cases I can expect this error to be thrown by stripe?

halcyon storm
#

yeah for next time, just keep the same thread if it's still open

#

What happens if you call confirmPayment() without entering a card number? What have you tried overall?

old scroll
#

The form won't submit without entering a full credit card/ valid card format. Can't test google pay scenario right now since it's not showing up in prod but I'll work on fixing that later. So I don't know if there is any other scenario except maybe from closing the google pay modal without clicking okay and submitting payment

#

Oh wait sorry

halcyon storm
#

I don't think we have an exhaustive list of all scenarios. Mostly if there's an error you would display the error message

old scroll
#

I get this error code
code: "incomplete_number"
message: "Your card number is incomplete."
type: "validation_error"

#

Is there any way to block form submission if no valid credit card number has been entered?

#

Ah okay thanks

old scroll
#

Sweet thanks koopa

halcyon storm
#

sure!

old scroll
#

Do you know what I could do to troubleshoot? I am logged in and have verified payment methods associated with my google account

halcyon storm
#

are you using HTTPS when testing?

old scroll
#

But not for me personally

halcyon storm
#

what do you see on that page exactly though?

old scroll
#

All the other payment options except google pay...card, affirm, klarna, afterpay, cash app, us bank acct, wechat pay

halcyon storm
old scroll
#

just pay with link

halcyon storm
#

okay so I think that's why, you likely used/tested Link

#

try removing all your cookies, or at least all the Stripe cookies and then reload the page

old scroll
#

okay sweet

halcyon storm
#

let me know if that works

old scroll
#

That worked! Thanks koopa

halcyon storm
#

yay!

old scroll
#

oh wait nvm

#

it did not work haha sorry I was seeing the UI buttons below

halcyon storm
#

๐Ÿ˜… it's really hard to follow you. What exactly do you see on that page

old scroll
#

Just the pay with link button

halcyon storm
#

please share an exact picture

old scroll
#

No matches, here's a pic

halcyon storm
#

Okay so it seems like something changed with Google Chrome and we don't know what yet. It looks like the "service worker" used for Google Pay sometimes disappear for some people and there's no way to recover