#aleclewis

1 messages · Page 1 of 1 (latest)

ruby wolfBOT
rapid lava
#

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?

kindred pewter
rapid lava
#

Um no that doesn't help

kindred pewter
#

What do you need?

rapid lava
#

You said this was for a pricing table

kindred pewter
#

I've created my own pricing table.

rapid lava
#

Ah okay.

#

I thought you meant a Stripe pricing table

kindred pewter
#

My apologies

rapid lava
#

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.

wet stratus
#

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

kindred pewter
#

Right. I'll make sure I do that.
Just having issues on my front-end speaking to the backend.

rapid lava
#

@wet stratus this channel is for stripe staff to offer advice

wet stratus
#

Ohh sorry, it was open, forget i was ever here

kindred pewter
#

Snufkin, is there any documentation that uses this use case as an example?

rapid lava
#

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?

kindred pewter
#

Right. Those are my own elements. One thing that's stripe is the payment portion.

rapid lava
#

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

kindred pewter
#

Alright. Thank you.

rapid lava
#

Which element are you using for your front end?

kindred pewter
#

I used the React Native SDK specifically the PaymentSheet I believe.

rapid lava
#

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