#bachir_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
âąď¸ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime!
đ 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/1212325033394053150
đ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
â˛ď¸ 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. Thank you for your patience!
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.
- bachir_code, 8 minutes ago, 9 messages
- bachir-react-elements, 1 day ago, 21 messages
- bachir2921, 1 day ago, 21 messages
- bachir2921, 1 day ago, 5 messages
- bachir-paymentelement-customername, 1 day ago, 6 messages
- bachir-ece-confirm, 1 day ago, 21 messages
Desktop:
onReady -> availablePaymentMethods {googlePay: true, applePay: false, link: false}
Mobile size:
onReady -> availablePaymentMethods: undefined
GPay is included though in the Card section, but I'd like it to be a standalone button like the desktop version
(I set wallet: false when instantiating the PaymentElement)
const options = {
mode: stripeRecurrenceInterval ? ("subscription" as const) : ("payment" as const),
amount: displayedFormAmountWithTip,
currency,
appearance: {},
paymentMethodTypes: stripePaymentMethodTypes,
card: {
wallet: false,
},
// setupFutureUsage: "off_session" as const,
paymentMethodOptions: {
us_bank_account: {
financial_connections: { permissions: ["payment_method" as const] },
},
},
paymentMethodCreation: "manual" as const,
};
...
<Elements key={locale} stripe={stripeInstance} options={options}>
{children}
</Elements>
hi! hmm I tried quickly and can't replicate that on my end. Do you have a link to your integration where I can try it?
what is this card:{wallet:false} ?
Unfortunately no, it's only locally.
hmm nevermind, this is a mistake, I'll fix it and see if it works
I removed that option and set wallets: { applePay: "never", googlePay: "never" } on the StripePaymentElements option, but no change.
Do you mean that on your side, the onReady event returns the availablePaymentMethods with GooglePay: true regardless of screen size ?