#dane_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1250139428094214144
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Hello! Can you link me to what you're seeing?
Hi Rubeus
That's the screenshot I took. It was shown as part of the "Powdur" ecommerce example along with this screenshot of the PaymentElement UI:
I'm having a bit of trouble tracking it down now as the docs are quite expansive.
What exactly do you want to do? Do you want to offer saved payment methods when people are making a purchase, or provide a way for people to manage their saved payment methods outside of a purchase?
We want to do both, I suppose. Primarily we want to show saved payment methods when people are making a purchase.
But we do also have a separate page where people can manage payments outside of the purchase flow.
What are you building your app with? Is it a native iOS app or React Native?
react native
iOS and Android
We already have the apps out there, but our Stripe implemenation is out of date so we're overhauling it. We are using the Payment Element so we can get other payment methods mostly "out of the box" without having to do a bunch of manual API integration work.
Our docs here explain how to initialize the Payment Sheet with a Customer's ephemeral key so it will display saved payment methods during a purchase: https://docs.stripe.com/payments/accept-a-payment?platform=react-native#react-native-add-server-endpoint
For management without a purchase, the Customer Sheet is the right approach (the thing I linked to originally). As far as I know that's a public beta, but let me check...
Yeah, it should be ready to use in beta form: https://stripe.dev/stripe-react-native/api-reference/index.html#CustomerSheetBeta
So you're saying for displaying saved payments in the purchase flow, we should follow this doc: https://docs.stripe.com/payments/accept-a-payment?platform=react-native#react-native-add-server-endpoint
And for displaying saved payment methods outside of the purchase flow, we should use the Customer Sheet?
Correct.
Mind if I briefly take a look at the other link you sent to see if I have any immediate questions?
Sure thing. We close idle threads, but we only do so after many minutes of idle time. Even if this thread does get closed you can always create a new one if you have a question! ๐
So is "Payment Sheet" used synonymously with "Payment Element"?
I'm just trying to get the nomenclature correct in my head.
No. Payment Element is a Stripe Element used on the web. Payment Sheet is used on mobile. They have a lot of overlap as far as functionality, but they are different things.
I believe some of our docs refer to the Payment Sheet as the "Mobile Payment Element" which can be really confusing.
These are our web Elements: https://docs.stripe.com/payments/elements
OK... So the link you sent (https://docs.stripe.com/payments/accept-a-payment?platform=react-native#react-native-add-server-endpoint) has tabs for other platforms. The web tab doesn't seem to mention Payment Element.
These are our mobile Elements, where it references "Mobile Payment Element" which is really the Payment Sheet: https://docs.stripe.com/payments/mobile
Under the Web tab on the link you shared, go to Custom flow to see the Payment Element guide.
The Stripe-hosted page and Embedded form tabs both use Checkout, not the Payment Element.
Happy to help!
Will this thread be available for later viewing? And can I invite a teammate to view?
Yep, this thread will always be available. You can search for it, or you can save this link: https://discord.com/channels/841573134531821608/1250139428094214144