#shahzaib-haider_best-practices
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/1344999153981329418
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
it's explained here:
Digital wallet payments such as Apple Pay or Google Pay can’t be saved and don’t create a generated_card. However, for businesses in certain verticals, Stripe offers a limited private beta feature that allows you to save digital wallet payment methods. To request access, contact stripe-terminal-betas@stripe.com.
https://docs.stripe.com/terminal/features/saving-cards/save-after-payment
So, my question is how to handle it if someone use a wallet as I am setting up recurring payment. User should be promted a message that he can't use wallet for recurring payment. But when can I get the info that user is using a wallet in the process flow?
Can I get info after terminal.collectPaymentMethod ? that which payment method user connected?
Can I get info after terminal.collectPaymentMethod ?
yes that's correct
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
But can I somehow check if generated_card can be generated successfully, can this be done before I process payment (As If I do this without checking and if generated_card is null then I have no option but to refund the payment)
since this is a known requirement ahead of time... you should be just able to tell your customers that they can't use Apple Pay and Google Pay
But what if user still do it, how can I hanlde that
actually you can collect the PM before creating or processing the payment
so that's not an issue
But will generated_card will be present in that payment method object?