#salim-bt_api
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/1379805546173038592
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
For a onetime purchase, I need to create a payment intent and get client_secret to continue pay on the frontend. But it doesn't work with Apple Pay and Google Pay (payment_method_types/allowed_source_types).
Hi there 👋 can you elaborate on what doesn't work? Are you seeing an error returned by our libraries or API, and if so what are you doing when that was returned?
Google Pay and Apple Pay are subsets of the card payment method type, they aren't unique types of Payment Methods.
Does this mean that it is enough for me to specify the «card» payment method (payment_method_types/allowed_source_types) on creating payment intent?
From the payment intent perspective, yes.
Is this a Payment Element integration that you're working on? (Feels like it since you're talking about using client secrets, but maybe I'm mistaken).
If so, you also need to ensure you're serving your page using HTTPS and have registered your domain with us as a Payment Method Domain.
https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements#apple-pay-and-google-pay
thank you