#bojack420
1 messages · Page 1 of 1 (latest)
Hello bojack420, 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.
• bojack420, 4 days ago, 9 messages
Nah not related to any previous conversations
In wallets config of the Express Checkout Element, googlePay can be set to auto (default) that Google Pay will only be shown if Google Pay is active and can be used: https://stripe.com/docs/js/elements_object/create_express_checkout_element#express_checkout_element_create-options-wallets
so to give a better idea, I have the payment elements show up in a modal. The modal is activated with a button press. If the user doesn't have google pay or whatever type of express payment not active ill have the button not show up. So does stripe have a method or an output stating if anything is available
I see! Thanks for sharing the details. It's possible via ready event of Express Checkout Element: https://stripe.com/docs/elements/express-checkout-element/accept-a-payment#ready-event
If the ready event returns that no payment method is available, then the modal shouldn't be shown.
ah beautiful, thanks!
No problem! Happy to help 😄