#aleclewis
1 messages · Page 1 of 1 (latest)
Hi 👋
I think you would need to listen to webhooks for this.
Do you have an example payment related to your pricing table I could review?
Perfect!
Yes, give me one moment. Here's a stackoverflow link that might provide more contaxt: https://stackoverflow.com/questions/76773418/stripe-payment-issue-expo-react-native
Um no that doesn't help
What do you need?
You said this was for a pricing table
I've created my own pricing table.
My apologies
So you are just creating a payment intent on the server? So your front-end just needs to send the quantity info to your back-end.
Just keep in mind sending the prices from the front end, a more capable user can send the price as zero, you shouldn't trust any data coming from the client, give an ID to your table and match it with a value in the backend
Right. I'll make sure I do that.
Just having issues on my front-end speaking to the backend.
@wet stratus this channel is for stripe staff to offer advice
Ohh sorry, it was open, forget i was ever here
Snufkin, is there any documentation that uses this use case as an example?
I'm still not clear on what Stripe has to do with any of this. So the user updates the quantity, which changes the price, correct? Those are UI elements that are not built by Stripe, right?
Right. Those are my own elements. One thing that's stripe is the payment portion.
Right so you just need to add communication between your elements and your back-end. The only part that might be related to stripe is that you need to update the Payment Sheet
Alright. Thank you.
Which element are you using for your front end?
I used the React Native SDK specifically the PaymentSheet I believe.
Okay so you would just want to not initialize & present the PaymentSheet until after the user has selected the quantity and you have created the PaymentIntent with the correct amount
If they close the sheet and change the quantity you'll want to re-create the Intent and re-initialize the Payment Sheet