#alexzada-react-native

1 messages ยท Page 1 of 1 (latest)

odd eagle
west niche
#

the actual backend of the application is in Python, I'm testing it on node only for now

odd eagle
#

Ah, so you'd have to do a lot of custom coding on your end to simulate installments then. I don't think we have another product that allows for installmenst "out of the box" (so to speak). Are your clients end-customers (e.g. consumers)? Or businesses?

west niche
#

I think the custom code I would need to do will be just a select with the number of installments based on the value of the product, but I don't know how to pass this in the request, within which object, and how to make Stripe cover this monthly value

#

sorry for my bad english, i using the translate

#

๐Ÿ˜†

odd eagle
#

Let me check if there's a goo place I can point you

west niche
odd eagle
west niche
vagrant salmon
#

๐Ÿ‘‹ stepping in here.

west niche
vagrant salmon
#

You would handle creating the Subscription Schedule for installments on your server.

#

The React Native part would just be to collect card details using the CardField or PaymentSheet Component

west niche
# vagrant salmon You would handle creating the Subscription Schedule for installments on your ser...

Ah yes, that I think I get it, but how would I handle the parcels in the backend? For example, how do I know how many installments the customer has chosen, what their value is. Also, I was looking at the link that @odd eagle sent me, and I saw that the request has the product, but in my case, I don't have a specific product, it's simply a race that will be paid, but maybe I may be misunderstanding

vagrant salmon
#

Yeah you would track this in your Database. And you would need to create a "Product" within Stripe to represent your race. You will want to read about how Subscriptions and Subscription Schedules work in general within Stripe to understand the different objects you will need to create. I'd start with reading through https://stripe.com/docs/billing/subscriptions/overview and https://stripe.com/docs/billing/subscriptions/subscription-schedules

Learn how subscriptions work within Stripe.

Learn about the Subscription Schedules object and how to use it.

west niche
vagrant salmon
#

Yes you would need a Product and Price as that is required for a Subscription within Stripe

west niche
vagrant salmon
#

Sure thing!

west niche
#

@vagrant salmon @odd eagle how could I pass iterations as a parameter in the request, being the value of the client's choice in the front end?

vagrant salmon
#

That looks fine to me

#

Are you hitting an error?

west niche
#

it's not an error, it's that the value of iterations is fixed in the code, I need it to be a value that the customer chooses, for example: the value is 900, the customer can pay in two times of 450, or in 3 times of 300, he would choose the best for him, understand?

vagrant salmon
#

Gotcha. You need to create these scenarios yourself and pass them to the backend based on what the client chooses. Then you would use a variable on your backend based on what you passed from your client to create the Sub Schedule with the correct amount of iterations and the correct Price

west niche
vagrant salmon
#

Yep