#.zvenko

1 messages · Page 1 of 1 (latest)

jagged talonBOT
hearty crest
#

Hi! Let me help you with this.

#

Could you please share the PaymentIntent ID pi_xxx?

celest charm
#

one sec

#

it's actually a setup intent, is that alright?

#

seti_1NdqVgLakHWL60yBBqQ7ZHCI

hearty crest
#

Are you able to get to the authorization dialog eventually?

celest charm
#

i can't interact with it or bring it in the foreground, it's blocked by the payment dialog

hearty crest
#

Are you using Stripe Checkout?

celest charm
#

no, PaymentRequestButton

sonic wraith
#

Hey! Taking over for my colleague. Could you please share part of your frontend code?

celest charm
#

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]

)

sonic wraith
#

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

celest charm
#

yeah, that's the 3d secure required by google pay, i was wondering if i can control it somehow

sonic wraith
#

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.

celest charm
#

so this is more of a chrome/google pay issue

sonic wraith
#

I think so yes, because that part of the flow is managed/triggered by Google Pay

celest charm
#

ok, thank you for your time