#ganesh-gawali_docs
1 messages ยท Page 1 of 1 (latest)
๐ 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/1468609912887054439
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- ganesh-gawali_ttp-confirm-error, 1 day ago, 79 messages
Hello! Taking a look ๐
Since you're using a mobile integration, you must confirm the payment client-side (step 3) but you do have the option to manually capture the payment on the server-side afterwards (step 4).
okay
Want to avoid step 3 so 1st manually capture then step 2 and directly step 4 will this work?
Sorry, it's not possible to avoid step 3 in a mobile integration. If this is necessary, you'd have to use a server-driven integration. https://docs.stripe.com/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven
okay
Just so you're aware, the server-driven integration does not work with tap to pay.
okay. then the server drivern option will not work for us
My code of tap to pay is working perfeclty fine till CollectPaymentMethod. on ConfirmPaymentIntent the SDK is throws an error - {
"code": "PAYMENT_ERROR.DECLINED_BY_STRIPE_API",
"message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer YOUR_SECRET_KEY'). See https://stripe.com/docs/api#authentication for details, or we can help at https://support.stripe.com/."
}
Can you please share the request ID for this failure?
okay
hey there are you still around?
I was helping you look into this with my colleagues yesterday
With the context that your integration is successfully getting connection tokens, connecting to readers, and collecting payment method details to attach to payment intents, i can see that most things are working as expected.
Here for example is your reader using one of those connection tokens to update a payment intent with the payment method data: https://dashboard.stripe.com/acct_1Qs1BWExYCOPxGAz/test/logs/req_i3IKZlVy8Mch8s
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
This was from one of you payment intents yesterday that I looked up
You can see the external IP address your reader used there, by the way
So, where is this breaking?
My suspicion is that there is a problem with your app/navigation state that is impacting your Stripe Terminal SDK instance between collectPaymentMethod and confirmPaymentIntent
In the place where you call confirmPaymentIntent() can you also try calling getIsInitialized() from the terminal instance?
https://stripe.dev/stripe-terminal-react-native/api-reference/functions/useStripeTerminal.html
Documentation for @stripe/stripe-terminal-react-native
It is breaking in ConfirmPaymentIntent
Yes I understand that
It would also be useful to add some diagnostic logging around where you call initialize() for the terminal SDK to see if you're unexpectedly re-initializing.
Okay will try getIsInitialized()
we did fix the multiple calling of the connection_token request. However let me also check the call to initialize() to see how many times it is getting called
what is the use of this - getIsInitialized()
I want to see if the instance recognizes itself as being initialized or not at the time you call confirm
okay