#daniyal_11692
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- daniyal_11692-local-google-pay-test, 15 hours ago, 12 messages
- daniyal_11692, 20 hours ago, 4 messages
- daniyal_11692, 5 days ago, 48 messages
- daniyal_11692, 5 days ago, 5 messages
- daniyal_11692, 5 days ago, 21 messages
- daniyal_11692, 5 days ago, 5 messages
and 3 more
the modal is appearing and you can pay by GooglePay? Where do you see the error message?
Can you still pay and finish the transaction?
checking
strange thing is happening. on the first time transaction has not happened but on the second time transaction is completed
i've shared the screencast
Thanks. How about those errors on PaymentInformation.tsx? I believe errors can also prevent the method to work properly
yes, if you notice on the first transaction there is an error but when i try second time error does not show
An unexpected error has occurred. Please try again later. [OR-IBIDL-01]
this is the error that appears on the first transaction
Yeah I see that, just asking the other 3 red errors "SyntaxError" or "TypeError" there
i've commented these lines
And can you share the SetupIntent Id here?
?
Yes!
seti_1OMntqAAKdQR3wItJhvZlDHW_secret_PBAE9H1cKZ6xHxknkFNnxIfsm5Le7gz
if you could pls take a look at this screencast
^
this will explain everything
Hmm okie I can see it succeeded without errors
Have you commented out the TypeError and SyntaxErrors?
yes, pls have a look at the screncaast
Still see SyntaxErrors there
Yeah but to narrow down the issue, it's best to exclude anything possibly prevent the transaction
Btw can you share your URL here? We can try on our side
its on my local env
it fails for the first time and succeeds in the next
async function confirmPaymentSetup() {
elements.submit();
await stripe.confirmSetup({
elements,
clientSecret,
redirect: 'if_required'
}).then(function (result) {
console.log(result);
doPost({ loading: true });
if (result.error) {
doPost({ loading: false, error: true, message: result.error.message });
} else {
doPost({ loading: false, error: false, message: authorizedText, response: result });
}
})
}
this is my conndirm setup function
Yeah looks correct at first glance
You can use some easy hosting service and share the URL with us. We can try to reproduce
Please make sure to comment out the SyntaxErrors to narrow down the issue
can you see from the setup intent id that when it fails for the first time what error it say?
seti_1OMoFwAAKdQR3wItzDZQkkTx_secret_PBAbssbsAqBdE26nsctYZ2juzynq3IU
I just seen but there is nothing wrong we can confirm from there. You can also see it: https://dashboard.stripe.com/test/setup_intents/seti_1OMoFwAAKdQR3wItzDZQkkTx
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
i found something
if you see the video when i click on place order for the first time my whole code is executed of confirmPaymentSetup method including .then block but on the second time when i click place order excluding the the .then block code is executed and .then code block executes when i click Pay on GPay modal
👋 taking over for my colleague. Let me catch up.
?
I'm terribly sorry, I lost track, discord was super busy this morning
I'm with you give me a second to read through the conversation
@lilac nacelle where are you located?
pakistan
I think the problem is with your HTTPS, because it's self-signed
but it wprks in the second attempt
yes this is really odd.
Would you mind hosting your code somewhere and share a URL where we can reproduce?
no not really, this is why we need to investigate and try to replicate this
ok. can you just have a look at this and see it looks ok? async function confirmPaymentSetup() {
if(paymentMethod != 'google_pay'){
var button = document.getElementById('submit');
button.innerText = pleaseWaitText;
button.disabled = true;
}
elements.submit();
await stripe.confirmSetup({
elements,
clientSecret,
redirect: 'if_required'
}).then(function (result) {
doPost({ loading: true });
if (result.error) {
button.innerText = buttonText;
button.disabled = false;
doPost({ loading: false, error: true, message: result.error.message });
} else {
doPost({ loading: false, error: false, message: authorizedText, response: result });
}
})
}
hi! I'm taking over this thread.