#ms.wang_26902
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- ms.wang_26902, 2 hours ago, 4 messages
You mean remove Google Pay from payment element?
Yes, we only want to display the card number information part below. I will use other methods to access Google Pay.
you can disable the wallets here : https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-wallets
OK, thanks
const options = {
mode: 'payment',
amount,
currency: currencyCode.toLocaleLowerCase(),
terms: {
googlepay: 'never',
applePay: 'never',
paypal: 'never'
},
appearance: {
theme: 'stripe',
type: 'accordion'
}
};
// Set up Stripe.js and Elements to use in checkout form
const elements = stripe.elements(options);
What I wrote like this is useless. Google Pay is still there.
the link that i've pointed you to references the wallet parameter
i don't see you defining wallet in what you've pasted
So, can I disable Google Pay?
yes, you can disable Google Pay
Is it necessary to define the wallet and can it be disabled? Then how to define the wallet?
are you a developer?
that link i shared shows you what parameters can be passed into options. To disable Google Pay, you need to have a wallets object in options with googlepay: 'never'
How to set wallet object
can you share the code snippet where you've created the Payment Element?
const paymentElement = elements.create('payment',{
wallets : {
...
}
});