#sanket8360

1 messages · Page 1 of 1 (latest)

alpine ploverBOT
velvet aurora
#

Hello Rubeus

muted wraith
#

If you want to charge hourly you would need to handle that manually on your end.

alpine ploverBOT
velvet aurora
#

Can I handle it in one time payment?

#

?

muted wraith
#

Maybe? What's your use case? Can you provide more details?

velvet aurora
#

Sure

#

I have one e-learning portal

#

And that portal has many subscription plans
Like monthly and yearly.

#

So, for example, right now on the Admin backend we can select "month" or "year" to display... well for the other categories in actual implementation like in the Tutoring and College Advising category we have now, those are paid for with # of hours packages (like $400 for 20 hours, for example). So if the admin can select  "# hours package" where the admin can select the number of hours by inputting a number like "20", then "20 hours package" would show up on the Pricing page. This allows us to set and change and create packages with different # of hours for a created package. For example, if the following packages exist on the Pricing page and we want to change one of them from:

$400 / 20 hour package

to

$500 / 15 hour package

warm oar
#

👋 stepping in as Rubeus needs to step away

#

Hmm okay but are these packages for a recurring model?

#

That just sounds like a one-time purchase to me?

velvet aurora
#

It would be great if it could be repeated.

warm oar
#

Ah okay well then yeah the minimum interval is daily

velvet aurora
#

Yes i know

warm oar
#

So you would want to create repeating one-time payments in this case if you want a shorter interval

velvet aurora
#

I'm going with a one time payment when I know Stripe doesn't have hourly intervals.

#

But can you guide me how can I archive it in one time payment?

warm oar
#

Sure

#

Have you decided which integration you want to use?

#

Stripe Checkout vs. the custom Elements flow?

#

Or are you already collecting payment method details in some way?

velvet aurora
#

Actually I have to integrate both subscription and one time payment.

warm oar
velvet aurora
warm oar
velvet aurora
warm oar
#

Not sure what you mean by that, sorry.

velvet aurora
warm oar
#

Yep see that link above.

#

It shows you how to charge a saved payment method using a PaymentIntent

velvet aurora
#

I have to use this form for one time payment.

warm oar
#

Sure, that looks like your custom form? Or maybe you are working with a third party?

velvet aurora
#

Yes I have my custom form.

warm oar
#

Regardless, you need to call your backend and create/confirm a PaymentIntent and pass the PaymentMethod ID that you want to charge.

velvet aurora
#

So I also have to make one time payment using this form.

warm oar
#

Okay so you likely want to just create another button other than your "Subscribe With Existing Card" button that is something like "Create one-time payment with existing card".

#

Then when that button is clicked you call your backend and create/confirm a PaymentIntent

velvet aurora
#

Yes it is but I don't want to open the Stripe checkout page.

warm oar
#

This flow will not open Stripe Checkout

#

Everything is handled on your backend.

#

All you need is a frontend trigger to call your backend