#shiva_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/1339974740336574484
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, this is all expected as GrabPay does not support recurring payments. We document this here: https://docs.stripe.com/payments/grabpay
I’m not setting up recurring payments. These are one time payments. Think of it as booking an Uber. Ideally you would save a card and use it for future bookings.
But if I were to include GrabPay, I am not allowed to use setup_future_usage
That is recurring payments in a way, you're saving the payment method details to re-use it later over and over again
You should get an error if you do that
This is because it's not supported
Okay understand, so what would be the best way to achieve this? Update the payment intent each time the user toggles between GrabPay and credit card?
To summarise, when a user checksout, I want to enable credit card and GrabPay as payment options. How can I best allow the user to save their credit card only for future use.
You can save card payment methods for suture usage. If they want to pay with GrabPay, you will need to recollect the payment method details. If they choose card, you can GET the customer's payment method to charge the customer after you have saved it for future payment, https://docs.stripe.com/api/payment_methods/customer_list.
Nice, but how do I save the payment method for an iOS app? Do I just call the payment method endpoint or does stripe have a better alternative?
Just concern if there is any security issue with just triggering a post from my app directly.
You can save that information in your database after the payment method is saved.
Okay but how do I save the payment method to stripe?