#akshay_code
1 messages Ā· Page 1 of 1 (latest)
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.
- akshay_error, 1 hour ago, 20 messages
- akshay_docs, 6 days ago, 23 messages
š Welcome to your new thread!
ā²ļø We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
ā±ļø We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1255549292148691014
š Have more to share? Add details, code, screenshots, videos, etc. below.
Hello! Watching now...
client_secret pi_3PVxyWFSVsPYhDti19IElSsQ_secret_HrajP7lhCHdZu9KJYdAF6i1PA
There were a number of errors shown at the bottom in that video, but they were all cut off. Do you have the full text of those errors?
Hello as my colleague mentioned above, can you share more details as we're unable to understand the problem you're describing. Message by hanzo stripe support
What's Paymentscreen in your context? Are you referring to PaymentSheet where you enter card details? Can you share screen recording of what you're seeing?
Additionally, can you print out the PaymentIntent clientSecret when you use it to initialize Payment Sheet? It is possible you're confirming a different PaymentIntent altogether
Let me check
Return url error
Okay, you should fix that issue, but I doubt it's causing the specific problem you're having. What about the other errors?
Other wer analytics related error
Return url is only for ios right, i checked android aswell its not working there
Can you log paymentOption and see what it contains?
Ok
Also can you confirm that paymentOption gets logged when you dismiss the PaymentSheet and doesn't happen at another, unexpected time?
Yes only after entering payment info and clicking continue
Other time it will be undefined
Okay, what about the other errors?
Which error
There was more than one error shown in the video, but you only shared details about one of them.
There wer 3 warning
- Components shuld have a unique key
- Return url is missing
- Some reactnative analytics error
And at the end route not found error
Only the 2nd warning is related to stripe
The only activity I'm seeing on our end is the Payment Intent being created by your server. The app isn't doing anything to it after that, which usually indicates you're using either the wrong publishable key or the wrong client secret in your app. You've confirmed both of those are correct? And there are no other errors being logged or raised anywhere?
I dnt need to make any api call to confirm payment right
Im not passing eumepheral key, can it be bcuz of that
You only need an ephemeral key if you want to use an existing Customer.
Can you show me what your <StripeProvider> code looks like?
Can you paste that publishable key here?
That is the correct key, it matches the account of the Payment Intent you're trying to use... š¤
š„²š„²
You mentioned a route not found error, you're sure tha'ts unrelated?
Yeah thats unrelated, it shuld route there when payment is successful
U can see the condition here
That rouute is not available currently hence throwing error
Can you show me your initPaymentSheet code?
Ill tell u the flow
When the component is rendered
- client secret generated frm server
- intializepaymentsheet is called
- when the button in clicked openPaymentSheet is called
- payment sheet is loaded
Oh, why do you have customFlow set to true?
It was true in the document, shuld it be false
Which doc?
That being set to true is why this isn't working.
customFlow set to true indicates you have a custom payment flow you want to handle more granularly, and requires additional manual steps on your part before the payment completes. When you have that set, you need to explicitly call confirmPaymentSheetPayment at some point.
Can you remove that or set it to false and try again?
Ok let me check removing it
pi_3PVyc0FSVsPYhDti0l19hhou_secret_oqmZeuCqWvnh7TdsDhuIffKdS
Can you please check the status for me
I could see the continue button turned green this time, which was not happening before
Yeah, that worked, have a look here: https://dashboard.stripe.com/test/logs/req_iAKXuPmPdCwOpi
I wont be able to check since i and frontend developer and dnt have accesss to dashboard
You really should have access to the Dashboard so you can view logs and other details. You can always create your own test account separately and develop there.
If its successful then its fine
Test accounts don't need to be activated; test mode will work just fine as soon as you create them.
Let me make one more payment can u chexk for the same once more?
I can't check every one for you, no, but you can retrieve the Payment Intent from the API and check its status after you make an attempt.
Happy to help!
Small flag caused alot waste of ur time š„²