#_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1344243394641395794
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
Could you please share the Account ID? acct_xxx
Where did they disable it?
hi! I'm taking over this thread. can you respond to the above questions?
Account ID: acct_1F91ygJ4FR86vx17
so you want to disable Google Pay from the PaymentRequestElement? that's not possible.
but you could use the ExpressCheckoutElement for this: https://docs.stripe.com/elements/express-checkout-element
this parameter allows you to enable/disable each wallet: https://docs.stripe.com/js/elements_object/create_express_checkout_element#express_checkout_element_create-options-paymentMethods
How do we know if a customer has enabled or disabled a payment method?
I'm sorry I don't understand your question. can you explain in more details what you are trying to do and what is the issue?
We are a website building platform. Users can bind stripe accounts on our platform. Users can turn off googlePay in stripe settings, but website visitors can still see the googlePay payment button. We hope that after users turn off the googlePay payment method, website visitors will not see the PaymentRequestButtonElement
if you are using the PaymentRequestButton, then both Apple Pay and Google Pay will work. it doesn't make sense to use the PaymentReuqestButton with Apple or Google Pay disabled.
So we need to change the implementation method?
but I still don't understand, why do you want to disable Apple or Google Pay?
if you are using the PaymentRequestButton, it means you want wallet payments, no?
The user has linked Stripe, but wants to disable Google Pay and only use Link payment method, because Google Pay cannot collect the custom information that the user wants.
If you want more control on which wallets are enabled/disabled, then you need to use ExpressCheckoutElement as mentioend above.
Ok,Thank u