#8139

1 messages · Page 1 of 1 (latest)

polar hornetBOT
strong crystal
#

hi, I don't really understand what you're asking, could you elaborate?

lavish valley
#

now I am using expressCheckout element to display googlePay button like this :

#

const googleElement = elements.create("expressCheckout", {
layout : {maxColumns: 1 , maxRows: 1, overflow: 'auto' },
paymentMethodOrder: ['googlePay'],
wallets : { googlePay : 'always' , applePay : 'never'}
});

#

and confirm the payment with stripe.confirmPayment function

#

I am running a H5 game , and find it will refresh the page when url redirected

#

is there any way to disable the return_url ?

strong crystal
lavish valley
#

not working , ask to setup a payment method

#

how can I create a payment method before confirm the payment ?

strong crystal
#

not sure, the Express Checkout element is new and in beta and I haven't had any training on it yet. Usually you don't do it that way, you just confirm the PaymentIntent directly.

lavish valley
#

ok, then is there any other way I can display the googlepay button only ?

#

I need to be sure the button displayed even no googlepay used or card saved in Chrome

strong crystal
#

you can use a different integration like the PaymentRequestButton.

lavish valley
#

a doc please?

strong crystal
#

I need to be sure the button displayed even no googlepay used or card saved in Chrome
I don't know what this means.

lavish valley
#

stripe display googlePay when Chrome card saved or Google Pay actived

#

I want to skip the check

strong crystal
#

I don't understand that. You want to show the Google Pay button even if it won't work, because the customer doesn't have it activated?

lavish valley
#

well .. I know what u mean , but I need to so that

#

just like on Iphone , googlepay also need to be displayed

strong crystal
#

ok. Still don't understand but ok.

lavish valley
#

so , is there any way I can create the payment method before confirm?

strong crystal
lavish valley
#

is this working for the googlepay as well ?

strong crystal
#

yes, Google Pay is supported as part of the PaymentElement in that approach

#

it will not display if the browser doesn't support it/doesn't have a saved card though; all our integrations work that way

lavish valley
#

Sure I will try the express checkout and confirm it with a PM

#

If I can create a pm before confirm