#marve_api

1 messages ยท Page 1 of 1 (latest)

hot mirageBOT
#

๐Ÿ‘‹ 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/1349429000531087400

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

knotty stone
#

Not sure how i could structure this actually. Cause if a stay is less than a week, or less than 3 days, everything would be charged on the first day for example

undone gale
#

Hi ๐Ÿ‘‹

Are you using Subscriptions or just charging a single Payment Intent?

knotty stone
#

Nothing yet, we're just now introducing events like home or hotel stays and we're not sure about the best possible avnue

#

Since it's a complex case, we thought schedules might make sense. Because if we used payment intents we would need to create a cron job to schedule them on our end right?

hot mirageBOT
hasty iris
#

Hi, taking over as my teammate needs to step away. Let me catch up.

knotty stone
#

Perfect thanks

hasty iris
#

I think this, https://docs.stripe.com/payments/save-during-payment would work for your business use case. Subscriptions are used for charging recurring prices for a given interval.

With the above flow, you can create the first payment for charging 20% and pass setup_future_usage: 'off_session', that you intend to use the payment method collected in the future. Then, after the first week, you charge x amount, and the remaining amount can be charged on the last PaymentIntent you create on that customer by passing that payment method id.

After you review the document, let me know what specific questions you may have

knotty stone
#

Okay got it, so we would need to set up a cron for this on our end

#

Thought maybe a subscription schedule would maybe bypass this but you're right

#

Maybe if I create a phase for each but no you're right since its a one time thing

hasty iris
#

It would not be for the same amount, the first payment is for 20%, then you just create two separate PaymentIntents at week one and then another one at week 2.

knotty stone
#

Yes exactly, was thinking for the second part but makes no sense since itโ€™s not a subscription

#

Thanks again