#harcon_harcon-reactnative-paymentmethod-allowredisplay
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/1266044662402256947
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- harcon_confirm-payment, 5 days ago, 26 messages
You followed this guide? https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements#save-payment-methods
Sorry for the late response, I did yes
Saved payment methods are displaying in the web PaymentElement, just not those created/added from our native app
What do you mean? Can you share a payment method id that is displayed and one that's not? Just so I can see the differences
please bear with me
pm_1PgQcDGyjGYV1j4ZHPJqGJGJ
This is a payment method I just created on our react native app
I can reuse this card when I try to make a new booking on the native app
but when I try to make a payment on web, the above method is not listed in the PaymentElement
Saved payment methods are displaying in the web PaymentElement
What did you mean by this though? Some payment methods are displayed in the PaymentElement? Can you share one that is?
sure one second
Hi ๐
I'm stepping in as my colleague needs to go soon
pm_1PgTqoGyjGYV1j4ZCWkyw3DI
I think you are referring to displaying existing payment methods in the Payment Element, correct?
In that case, the payment methods you are saving in your React Native app are not configured for redisplay. We call out that this might not work in our doc here:
https://docs.stripe.com/payments/save-customer-payment-methods#display-existing-saved-payment-methods
The Payment Method you just shared has the allow_redisplay property set. This is what allows it to show up in the Payment Element
But the Payment Method you shared earlier does not. This means it won't show up in the Payment Element.
ahh I see, sorry perhaps an oversight on my part. so where do I use the allow_redisplay param on native?
I don't think you can set that currently, but let me take a look
Okay I was looking through the React Native SDK and it doesn't look like we support passing the allow_redisplay option.
You can update the Payment Method object directly from your back-end server though.
https://docs.stripe.com/api/payment_methods/update#update_payment_method-allow_redisplay
So if you had some sort of Checkbox in your payment flow that a user could check, you could use that trigger the update to the saved payment method on your server
Okay, so to be clear, when a payment intent is confirmed - we should access that payment method on our backend and update its properties to allow_redisplay = always. Is there a need for a checkbox? Trying to keep all payment interactions contained within the PaymentElement and native Payment Sheet respectively
Sure you don't have to use a checkbox. We just recommend allowing customers the ability to determine whether or not their payment methods are saved
okay great, can I ask is there any intention to enable the param on native going forward?
I am not aware of any work on this but that doesn't mean it's not on the roadmap
Okay, thank you for your help
Sure thing, happy to help ๐