#mboras_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1337401219458662503
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
- Can I create in stripe dashboard for payment of 1500euros some payment link that will be split in 3 payments of 500 euros. I'll send to user first time that I generate link of 500 euros payment and send to him to pay. 2nd and 3rd payment will happen automatically in our app and money will be taken from his card on specific dates that I can set?
I'll ask 2nd question after I figure out what is the best approach here
Can I create in stripe dashboard for payment of 1500euros some payment link that will be split in 3 payments of 500 euros. I'll send to user first time that I generate link of 500 euros payment and send to him to pay. 2nd and 3rd payment will happen automatically in our app and money will be taken from his card on specific dates that I can set?
No, Payment Links don't support payment splitting today. You'd need to manually capture 3 separate payments
Maybe crazy idea, but can I maybe create manually subscription with custom stuff that will be in checkout or it is better to create 3 separate payment links?
There's no way to configure that with Checkout either no. You can't set it to only collect 3 recurring payments or configure an end date on the subscription
You can only really automate this with a schedule, or look at this invoicing beta
Recommendation would be collect the initial payment via PL/Checkout, than handle the other 2 payments off-session: https://docs.stripe.com/payments/checkout/save-and-reuse?payment-ui=stripe-hosted#charge-saved-payment-method
ok let me process this please
Subscription schedules use cases -> can I create all of this manually through dashboard?
Yes, that should be possible.
But now when I look at these links it seems to me that maybe best and most easy option is https://docs.stripe.com/invoicing/payment-plans
I can set dates when user will pay and easily change amounts with line items (because each time it will be different and I can't have predefined products)
I am confused, can you help please
in docs I see "Request in multiple payments"
but when I do in in my account on test mode
I want to create payment plan that will be scheduled on custom dates
I see that this is a beta feature, I guess you will find more information about Invoice Payment Plans if you reach out to Stripe Support: https://support.stripe.com/?contact=true
But I am sure it should be possible with currently supported tools too.
But arent the payment amounts going to be the same every month? Could you create a Subscription that ends after 3 cycles, for example?
I don't know, it depends on your business requirements.
that is answer -> payment amounts are same right
Each month user will have 1/3 of total payment
You can't set the end date when you create a Checkout Session in mode=subscription, but you could potentially update the resulting Subscription object to set cancel_at=<end of 3rd cycle>: https://docs.stripe.com/api/subscriptions/update#update_subscription-cancel_at
ok
I've sent inquiry to support team on email about https://docs.stripe.com/invoicing/payment-plans
Overall, your use case is pretty advanced, so I wouldn't look for solutions among no-code or low-code products like Payment Link or Checkout. I would suggest building your own payment page, since you will also need to explain the terms to the customer.
I mean my user in the app has option to pay with stripe checkout once fully amount, but Stripe Klarna is not supported for Croatia
So they have below CHECKOUT CTA, another CTA that is sending admin to email what user wants.
Idea is that admin will handle all further communication with client on email and send him some link to pay his 1/3 payment and 2 others next month
Sorry for bothering and asking the same questions, but I want to understand this thoroughly
while I am waiting response for payment-plans, can I maybe fallback to https://support.stripe.com/questions/create-and-send-an-invoice-using-stripe-billing
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
I'll tell admin to send 3 times invoices to users and that will do the thing
Yeah, if you're building a manual process, sending 3 Invoices might be the easiest solution.
Alternatively, you could collect a PaymentMethod from the customer using Checkout Session in mode="setup". Then create 3 Invoices using the save PaymentMethod and charge the customer off-session, so they don't need to do anything at all.
you mean by that this?
Yes, normally you should be able to select a PaymentMethod of the customer.
I'll not have his card number ,expiration date and CVC if he is coming to my site 1st time and is not customer yet because no payment was made from his side.
After I send him 1 st invoice and he pays, I'll probably after that can autocharge him?
about payment plans
Please see my message above, you start with:
collect a PaymentMethod from the customer using Checkout Session in mode="setup"
After that you can use this PaymentMethod create Invoices that auto-charge customers
I don't understand you what you are saying here because I don't see through stripe dashboard mode="setup"
I only know about that flag in API creation of checkout
but in this payment in instalments manually that I am asking now -> This user will never go in checkout in my app because he doesn't have full amount and Klarna is not supported in Croatia
Yes I am talking about Stripe Checkout creation via API.
but I don't need that here
You can have a separate Checkout Session from your app specifically for saving PaymentMethods for your instalment flow
aaaah I understand what you want to say now
but I'll skip that because client is low on budget and he wants to handle everything manually by himself
I have one final question because until payment plans are available (I'm on waitlist), I'll use stripe invoices that admin will send manually whenever he wants in 3 instalments.
On what event should I listen on my webhook endpoint when user pays successfully invoice?
Also I'll tell admin to pass flags 1/3,2/3 and 3/3 and I want to read that in my webhook API endpoint.
When I get 3/3, I'll do some logic
Payment Links in mode=setup also exist. But I don't see how you can create it via Dashboard...
I'll let admin do this manually
can you answer me this please
And btw tnx for your patience
invoice.paid is the event
nice
will that event will be trigerred for checkout sessions in mode: 'payment' also?
When I get 3/3, I'll do some logic
This sounds human-error prone.
Maybe you could generate unique IDs for each installment plans and send the same ID with all 3 invoices? Then you can check if you got 3 Invoices with the same ID paid and do the logic.
This would be more reliable.
smart
No - checkout.session.completed
Where I can set that ID each time when I create invoice and how to read it in my API endpoint (I'm using node js)
some of these?
You could use custom_fields maybe? But in all those cases the customer will see it on the Invoice PDF.
I mean it's not a problem to let them see that ID
ok I'll put it in custom_fields
I'll now create my test endpoint to listen to invoice.paid and pass custom_fields to read it and after that I don't have any more questions
Happy to help.
Do you have any more questions?