#8139
1 messages · Page 1 of 1 (latest)
hi, I don't really understand what you're asking, could you elaborate?
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 ?
maybe try setting redirect to if_required on this call https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-redirect
not working , ask to setup a payment method
how can I create a payment method before confirm the payment ?
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.
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
you can use a different integration like the PaymentRequestButton.
a doc please?
I need to be sure the button displayed even no googlepay used or card saved in Chrome
I don't know what this means.
stripe display googlePay when Chrome card saved or Google Pay actived
I want to skip the check
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?
well .. I know what u mean , but I need to so that
just like on Iphone , googlepay also need to be displayed
ok. Still don't understand but ok.
so , is there any way I can create the payment method before confirm?
you can have a look at https://stripe.com/docs/payments/accept-a-payment-deferred
is this working for the googlepay as well ?