#guizhong_10139

1 messages · Page 1 of 1 (latest)

storm obsidianBOT
digital blaze
#

Something went wrong and Google Pay cannot be displayed. Please select another payment method and try again.

#

This error is reported when canceling Google Pay

granite oyster
#

Hi
You are using Stripe Element in your case right ?

digital blaze
#

yes

#

this.xElements = stripe.elements({
mode: 'payment',
paymentMethodCreation: 'manual',
locale: _lang,
amount: this.oOrder.payment_total,
currency: this.oOrder.currency.toLowerCase(),
appearance: appearance
})
this.cardElement4 = this.xElements.create('payment', options)
this.cardElement4.mount('#payment-element')

granite oyster
#

Could you inspect the network and see what API is sending back that message?

#

Or if your code source is returning that popup message

digital blaze
#

this.stripex.createPaymentMethod({
elements: this.xElements,
params: {
billing_details: bAddress
}
}).then((methodResult) => {
if (methodResult.error) {
this.$message.error(methodResult.error.message)

    }

})

granite oyster
#

The red popup message doesn't seems a Stripe UI component

digital blaze
#

createPaymentMethod()

digital blaze
granite oyster
#

What API ?

digital blaze
#

stripe.createPaymentMethod()

#

this.stripex.createPaymentMethod({
elements: this.xElements,
params: {
billing_details: bAddress
}
}).then((methodResult) => {
if (methodResult.error) {
//Error returns here
this.$message.error(methodResult.error.message)

    }

})

granite oyster
#

If you cancel Google Pay, why you are calling this method?

#

You are following what guide ?

digital blaze
granite oyster
digital blaze
granite oyster
#

Is there any particular reason for that ?

digital blaze
granite oyster
#

Cool! Happy to help!

digital blaze
#

Thanks😀