#hk6_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/1293488606924767293
đ 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.
- hk6_best-practices, 1 day ago, 27 messages
Hi @silent plover hope you are doing great today
hi! on_behalf_of on its own isn't really enough. You either need to do this as a Direct Charge passing https://docs.stripe.com/connect/authentication#stripe-account-header , or as a Destination Charge using https://docs.stripe.com/api/subscription_schedules/create#create_subscription_schedule-default_settings-transfer_data .
the issue with transfer data (which was my original choice) does not work either as the connect account is a US account
but basically if I add stripe_account=xxx in my schedule definition that would work?
should I do that when I create the schedule or at modification is enough?
well it might work if you do transfer_data + on_behalf_of (https://docs.stripe.com/connect/account-capabilities#transfers-cross-border)
otherwise Direct Charges can work but you need to be aware of the implications(all objects will be created on the connected account, the connected account has liabilities for refunds and chargebacks, and since this is an Express account it can't handle any of that itself so you need to build a dashboard/system for that)
also as far as I can see both accounts here are GB
the test account is indeed, but the target in prod is not
I shoudl indeed create a test account matching the prod conditions
The schedule now is created with no error. I am trying to check if it behaves as expected in terms of transfer and application fee. But when I use a clock to simulate time passing, I don't see the payment happening
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I'll look in more detail but the first thing I'd mention is invoices happen an hour after the period_end so you always want to advance the clock to like a day after the period end just to cover it
yes I think this is it. I will try that
AFAICT you set the schedule to transition to a phase with transfer_data starting on 2024-11-11 08:46:09 but your clock is still set to 2024-10-14 08:47:00
mmmh strange
Thanks for the heads up
the period should be set at end of trial period
you are right
That worked. Thank you
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
For now I am all good. @silent plover helped me. Running some tests but should be good. Thanks a lot guys.