#.zvenko
1 messages · Page 1 of 1 (latest)
one sec
it's actually a setup intent, is that alright?
seti_1NdqVgLakHWL60yBBqQ7ZHCI
Are you able to get to the authorization dialog eventually?
i can't interact with it or bring it in the foreground, it's blocked by the payment dialog
Are you using Stripe Checkout?
no, PaymentRequestButton
Hey! Taking over for my colleague. Could you please share part of your frontend code?
Are you following this guide?
https://stripe.com/docs/stripe-js/elements/payment-request-button
That other dialog isn't part of this integration guide
hello, yes
const pr = stripe.paymentRequest({
currency: 'gbp',
country: 'GB',
total: {
label,
amount,
pending: action === 'buy',
},
requestShipping: collectShipping,
requestPayerName: collectShipping,
requestPayerPhone: collectShipping,
disableWallets: ['link'],
})
pr.canMakePayment().then(result => {
if (!result) return
setPaymentRequest(pr)
})
pr.on('paymentmethod', onPaymentMethod)
const onPaymentMethod = useCallback(
async (event: PaymentRequestPaymentMethodEvent) => {
if (!stripe || !elements || !clientSecret || !user) return
console.log('onPaymentMethod clientSecret:', clientSecret)
console.log('onPaymentMethod, event:', event)
const { error: cardSetupError, setupIntent } =
await stripe.confirmCardSetup(
clientSecret,
{
payment_method: event.paymentMethod.id,
},
{ handleActions: false }
)
console.log('setupIntent', setupIntent)
if (cardSetupError) {
console.log('cardSetupError', cardSetupError)
return
}
if (setupIntent.status === 'requires_action') {
const { error: handleNextActionError } = await stripe.handleNextAction({
clientSecret,
})
if (handleNextActionError) {
console.log('handleNextActionError', handleNextActionError)
return
}
}
},
[clientSecret, elements, stripe, user]
)
This code isn't behind the other popup your are seeing in your website
There must be something else in your integration triggering that other popup
try inspect your website content
yeah, that's the 3d secure required by google pay, i was wondering if i can control it somehow
Interesting, I'm not sure if Stripe has control over that popup, because the Payment Request Button just triggers Google Pay popup and then Stripe has no impact and the remaining flow.
so this is more of a chrome/google pay issue
I think so yes, because that part of the flow is managed/triggered by Google Pay
ok, thank you for your time