#imexoodeex

1 messages · Page 1 of 1 (latest)

hybrid stagBOT
night surge
#

Those look like 2 different errors

#

one is a post and 1 is a get

#

When you expand that post in the browser console above, what's the message say?

untold prawn
#

oh yes sorry

night surge
#

Ah yeah so looks like we're not getting your api key when you attempt to make the request

untold prawn
#

hm

night surge
#

That's the one from the browser console?

untold prawn
#

that's from postman

night surge
#

Ok. You'll need to log the response to see a helpful error message then

#

But this looks like 3 different requests you've shared with me each with a different issue

untold prawn
#

how do I log that response

night surge
#

console.log

untold prawn
#

ah yes

#

silly me

night surge
#

But for this one the issue is you made a GET instead of a POST:

untold prawn
#

yes I got it

#

can I share client secret?

#

or do I need to mask it

night surge
#

Mask it

#

Payment intent id's are fine to share but I wouldn't share the client secret

untold prawn
night surge
#

Oh that's not the response to the 400 call

untold prawn
#

I mean I logged the stripe.confirmCardPayment

night surge
#

You could also check the network tab of your dev tools to see the request response

untold prawn
night surge
#

Ah yeah

#

Can you paste the PI id here?

#

So I can see the flow of what happened?

untold prawn
#

pi_3N6aX9GjWsCINZfn0JkdSqFb

night surge
#

Yeah so the subscription was automatically charged with the default payment method on the customer

#

If you don't want that behavior, you'll need to pass default_incomplete

untold prawn
#

okey, it's working, tyvm, but it doesn't redirect me when I pass the return_url - can I redirect the user by myself, by passing params by myself?

night surge
#

Yeah if you have an elements integration, you'd need to handle that yourself

untold prawn
#

I'm doing stripe.confirmCardPayment since I'm using only card payment, but I'll handle navigation by myself, thanks again ❤️

night surge
#

Ah I see