#amaan_error

1 messages · Page 1 of 1 (latest)

woeful condorBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1463072001877868585

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

magic pewter
grave jay
#

Hi there 👋 please give me a moment to catch up

#

If you don’t mind, could you share your account id so that I can take a closer look at how your integration works? You can find your account id by logging in to https://dashboard.stripe.com/settings/account . It'll have the prefix acct_

magic pewter
#

Hey! No worries at all 😊
Our Stripe account ID is acct_1OAAlbH4WIDMKylP.
Let me know if you need anything else while you’re checking things out 👍

grave jay
#

thank you

#

I am not seeing dev.unsubby.com as a registered domain in this Stripe account

magic pewter
#

Yep, all good on that 👍
We’ve registered of our web domains in the Stripe account we’re using, and the domain is also enabled in our test environment.
Let me know if you’d like me to double-check anything specific.

grave jay
#

thank you, let me check!

woeful condorBOT
grave jay
#

sorry, I need to step away, but my teammate will follow-up on your question, just give us a moment 🙂

celest lichen
#

👋 Yes, hi there, I'm taking a look 🙂

magic pewter
#

ok sure

celest lichen
#

When a customer clicks on the "Cancel" button to submit, what does the code look like there? How are you calling Stripe.js there?

magic pewter
#

i am calling a dispatch event to trigger payment

celest lichen
#

What do your validateStripeFields and handlePaymentIntent methods look like?

magic pewter
#

here is the code for validateStripeFields and handlePaymentIntent

celest lichen
#

Have you managed to track down at which point in your code the Apple Pay error happens? I see various things being printed to the console.log, that I don't see in your code here.

I note that you're calling elements.submit() twice (once on validation) and once on "handlePaymentIntent". It's also a bit unclear to me what your overall flow is, as when submitting a card payment, you're using a confirmation token, yet I don't see evidence of that in the code you shared.

woeful condorBOT
magic pewter
#

I am removing validateStripeFields function and checking
also i have used confirmation token for card payment to store payment address details

civic robin
#

ok! if you can let us know which call to Stripe is returning this error, that should help to track the issue down

magic pewter
#

In this line it is breaking
console.log(submitError,'1111111111111111111111111')

[Log] (2) (2987-6bec8b2ffb72d548.js, line 1)
Object

extra_fields: {localized: true}

message: "Something went wrong. Unable to show Apple Pay. Please choose a different payment method and try again."

type: "invalid_request_error"

Object Prototype
"1111111111111111111111111"

celest lichen
#

You're calling elements.submit() in your validation function, and again here. Can you try with just one of those calls?

magic pewter
#

i remove validation function

civic robin
#

hey 👋 taking over as my colleague needs to step away

#

I can see that this thread has been ongoing for a while now - would you mind if we moved this conversation to email? this will allow for us try to reproduce your setup for debugging

woeful condorBOT
magic pewter
#

Hey sure we can move to email

woeful condorBOT
#

Hello @magic pewter, we have sent you a direct message, please check it at https://discord.com/channels/@me/1463112638715400246

  • 🔗The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.