#idemoovleo_97899
1 messages ยท Page 1 of 1 (latest)
Hi there!
We recommend using Subscriptions if you have recurring payments, like every week or every month. Is this the case here?
Not really it's like you take the scooter from one point to another and you pay
But can we use tiered pricing without subscription?
Using Subscriptions for this seems way to complex. Once the user finished renting the scooter, compute how much they need to pay, and create a PaymentIntent for that amount with the exising payment method.
This is possible to use tiered pricing with stripe doing calculation or I need to calculate myself?
you mean usage based pricing? This is only for subscriptoins.
So If I made this type of price meaning the first hour is 0.20$/min and 1$ then 0.15$/min. I need to calculate it in my backend and create a paymentIntent with the total price?
I didn't found how we can use tiered pricing without that but I can compute it in the backend
I need to calculate it in my backend and create a paymentIntent with the total price?
Yes that seems like the simplest option. Handling Subscriptions can be tricky and don't make sense if you only have a single payment.
ok thanks
Happy to help ๐
Can I just have more info on the bailing I made?
Will it work if exemple my user has 500$
The the bail I made is 400$
And the user rent another before the 7 days I reapply a bail of 400$. Did I need to cancel the old one?
I'm sorry I don't understand you question. What "my user has 500$" means? "cancel" what exactly?
Hold on check if the user has money right?
Can you re-explain step by step your question?
I mean I apply a hold to get money in case the user damage the scooter.
If I apply multiple hold on the card would it work if he has only 500$
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
The hold will expire in 7 days, you can apply it again after.
I mean I made a first hold on of 400$ and then my user make another rental and I reapply another hold on of 400$ before the 7 days. Would it work if my user has only 500$ on his account for exemple?
No, they will need to have at least $800 (400+400)
You can check if a given payment method has a hold on it and not apply it until it expires.
You can save it in your database or save the timestamp in PaymentMethod.metadata: https://stripe.com/docs/api/payment_intents/update#update_payment_intent-metadata
Is it better to remove the hold on and recreate one to extend time we can take it ?
If he has already one
Thank you very much, have a good day
Happy to help!
You too.