#mboras_api

1 messages ¡ Page 1 of 1 (latest)

odd latchBOT
#

👋 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.

forest venture
#
  1. 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

magic grail
#

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

forest venture
#

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?

magic grail
#

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

odd latchBOT
forest venture
#

ok let me process this please

#

Subscription schedules use cases -> can I create all of this manually through dashboard?

river oracle
#

Yes, that should be possible.

forest venture
#

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

river oracle
#

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?

forest venture
#

payment amounts are same right

#

I've asked that first hahha

river oracle
#

I don't know, it depends on your business requirements.

forest venture
#

that is answer -> payment amounts are same right
Each month user will have 1/3 of total payment

river oracle
forest venture
#

ok

river oracle
#

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.

forest venture
#

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

#

I'll tell admin to send 3 times invoices to users and that will do the thing

river oracle
#

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.

forest venture
#

you mean by that this?

river oracle
#

Yes, normally you should be able to select a PaymentMethod of the customer.

forest venture
#

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

river oracle
#

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

forest venture
#

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

river oracle
forest venture
#

but I don't need that here

river oracle
forest venture
#

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

river oracle
#

Payment Links in mode=setup also exist. But I don't see how you can create it via Dashboard...

forest venture
#

I'll let admin do this manually

forest venture
forest venture
#

nice

#

will that event will be trigerred for checkout sessions in mode: 'payment' also?

river oracle
#

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.

forest venture
#

smart

river oracle
forest venture
#

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?

river oracle
#

You could use custom_fields maybe? But in all those cases the customer will see it on the Invoice PDF.

forest venture
#

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

river oracle
#

Happy to help.

forest venture
#

wonderful

#

tnx @river oracle a lot

#

that's it that I have questioons

river oracle
#

Do you have any more questions?

odd latchBOT