#tarun_connect-balance
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/1282806521041780796
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there
hello!
Where are you blocked exactly? Ideally, the customer should be able to take some front-end action that triggers some back-end code to cancel the Subscription immediately or update the Subscription to cancel at a specific date
I guess im trying to ask how would I make sure it happens at the end of the billing cycle to prevent diusputes
lets say someone calcels in the middle of the month
how can i make sure they complete the services for that billing period and then it stops
Got it. You'll want to use Update Subscription instead with cancel_at_period_end: https://docs.stripe.com/api/subscriptions/update#update_subscription-cancel_at_period_end
thank you!
Can you help me with one last thing?
Can you see from your end who made the payment and who recieves the payment with this subscription
i created it on the users end and purchased it from another user but just want to make sure its configured correctly
can i send you the id?
I can't share any specific customer details in this channel. Is there a reason you can't view these details in the Dashboard yourself?
its in test mode with fake accounts?
its hard to see if the money came in
and it said the recurring payment failed
even though i saved the test card on file
I'm looking into the payment failure on the latest Invoice
Ah, I see what happened
You see how its kind of confusing to see whats going on
im not sure the best places to look to understand whats going on
my apoligies if im hard to understand lol
Im also new to coding so bare with me
The first payment succeeded since the first Invoice's PaymentIntent was confirmed client side with test card details. That test card was attached to the customer but it was not added as the Customer's default card for future Invoices nor was it added as the default card for all Invoices associated with this Subscription
It's okay, Stripe Billing is fairly complex
Here's what I recommend you do
If you want all future Invoices for this Subscription to be paid with the payment details used in the first Invoice, you should pass payment_settings.save_default_payment_method: on_subscription when creating the Subscription: https://docs.stripe.com/api/subscriptions/create#create_subscription-payment_settings-save_default_payment_method
If you want to use the payment details from the first Invoice for any future Invoice for this customer, you should use the first Invoice's PaymentMethod ID to set invoice_settings.default_payment_method on the customer: https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-default_payment_method
does stripe automatically send the invoices to the customers email with this feature?
and your saying pass it when I create the subscription using the API right?
Saving a default PaymentMethod on a Subscription or on a customer is unrelated to whether or not Stripe sends finalized Invoices to Customers
If you use payment_settings.save_default_payment_method when creating the Subscription, the payment method used for the initial invoice will be added as the Subscription's default payment method. You can always update the Subscription after the fact to update the default payment method, so you're not limited to only passing this on creation
understood thank you!
If i want to allow the user to see how much revenue theyve generated in total and from each subscription can i do that all from calling the balance API?
No, not exactly
The Balance API will return an account's current balance details, which is not exactly how much total revenue they've generated
how should I account for this in the UI
understood thats why the numbers are off i figured
What numbers exactly?
Well for example if the user has a subscription for 100 a month, and the user also does some one time jobs the available balance doesnt show up equal right away (it doesnt show what is in transit)
it usually takes a few days for that to catch up
it doesnt show what is in transit
What exactly doesn't show what is in transit?
one moment i will get the info for you so its easier
acct_1PXzSYPhGdKHtuQw
i guess I was a little confused because of the available balance instant payout and the available balance
Are those accounts on manual Payouts? If not the "available balance" is kind of irrelevant
tarun_connect-balance
so theres two types of transactions that occur
- is when a service gets done we hold the money using direct transfers and then send it over once the buyer accepts the service
then we also have subscriptions the users can sell if they want where users can subscribe to reoccuring payments if they are happy with the freelancer
Thats why i am not sure what the best way to go about doing this is
sorry that doesn't really address my question unfortunately
the manual payouts are there for one time transactions
theyre manual in the sense the api does it once the service is confirmed
not manual like we use the dashboard to transfer the money
okay so you are confirming that Stripe account is configured with a manual Payout schedule?
I believe so