#ironbeard
1 messages ยท Page 1 of 1 (latest)
Hey Hanzo ๐
Hello ๐
Are you asking about the first invoice of the sub or a recurring one?
Hmmm, this is the first invoice, but it was one where I set up to use ACH Credit (they haven't paid yet).
The flow on our website uses Card element etc, but a few of our clients require ACH Credit, so I set it up manually in the dashboard
sub_1Me3qqCoTIfwbn28ekE0AUwL
It may be dependent on how you're creating the sub, checking...
Ah, gotcha, thanks ๐
I don't use the dashboard a lot, and I was focused on the ACH Credit part, so yes perhaps I didn't create it corredctly
No worries, it boils down to subscription getting created using send_invoice collection method ๐
https://stripe.com/docs/api/subscriptions/create#create_subscription-collection_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
hmm
Hmm, do I not want to set send_invoice then? I do want an invoice to be actually sent, since it's ACH Credit only
I guess I thought that using ACH Credit would put the Subscription in requires_payment_method (or similar) and then switch it to active when the payment clears (assuming it covers the cost)
Ah sorry for the delay
got pulled away on other threads and completely missed your response.
No worries ๐
So ACH credit transfers is a push based payment method where the customer sends in funds to a virtual bank acc
It wouldn't make sense to create a subscription with charge_automatically when there's no payment method to charge exactly
So at the moment a sub with ACH credit transfer (created via the dashboard) will always have an active status as it is created with send_invoice
Yeah, that's my thought process too
but I thought the whole "thing" with ACH Credit Transfer (and Bank Transfer for non-US countries) is that Stripe holds the funds in an intermediary account until sufficient funds have posted, then mark the invoice as "paid". .. So it seems strange that Stripe wouldn't also use that event to set the Subscription to "active"
I think it has less to do with ACH credit transfers and more to do with how subscriptions with send_invoice work
Can I use the dashboard to set the Subscription status to something other than active, or should I find a way to handle this on my side?
I don't think you can update the status from the dashboard. You'll likely need to use the API
Ah, yeah I can do that. Do you know if I'd be responsible for setting it back to active when they pay the Invoice?
Yes, I believe so. You'd want to listen for invoice.paid events
Gotcha, do you know what the billing_reason would be for that? subscription_create?
For the first invoice?
Hmm, I suppose so, yes
Yes, the reason should be subscription_create then
Gotcha. And if my subscription durations are for one year, can I expect the status to go into unpaid at that point, until they pay the second invoice?
Good question. I think so but am checking in to that
๐
So, in trying to set status to unpaid, I accidentally set the billing_cycle_anchor to "now", which has generated two invoices that are now in draft for the next hour.
The customer is cus_NOrUQPLE0lzHcJ
How do I prevent these from being sent out? ๐ฆ
Another good question. Will check in to that as well. I haven't had much luck finding this info myself and will pull in a colleague
All good ๐
Just worried this is our customer's first experience using our new online payments system and I really want to avoid confusing them, etc.
For now, the primary concern is making sure they don't receive these two mistaken invoices.. the issue with the Subscription status is not nearly as important
Hi again ๐ catching up on context.
Hey toby ๐
BTW, meaning to tell you from yesterday: turns out "ACH Credit" is basically what I wanted from "Bank Transfer" (but for USA).
Anyways.. I'm also on chat with Stripe Support about these invoices I accidentally created..hopefully one of y'all can help me get that resolved
There is an endpoint for deleting draft Invoices, but it sounds like these Invoices may be related to a Subscription which I believe will block them from being deleted:
https://stripe.com/docs/api/invoices/delete
Have you tried this?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Not yet, lemme see..
You're correct: InvalidRequestError: Request req_xIL8fYwFCSM7Xm: You can't delete invoices created by subscriptions.
Could I possibly change the email addresses associated with them to avoid them from being sent?
Will "turn off automatic collection" prevent the draft from being finalized and sent?
I believe you're referring to adjusting the auto_advance property on the Invoice, which yes should prevent the Invoice from automatically being finalized:
https://stripe.com/docs/invoicing/integration/automatic-advancement-collection#toggle-auto-advance
Yeah, it does seem to have done that.. it no longer says "Will automatically be finalized and sent in 30 minutes"
in_1MeKJACoTIfwbn28tEjEhymX and in_1MeKF7CoTIfwbn28AeFEXOKs
I think that may cascade to impact the Subscription though, depending on your settings, since its latest Invoice won't progress through its expected lifecycle.
hmm, hooray ๐
Due to the proration situation, one of them is for $0.50 and the other for $0.00.
Well, I've prevented them from sending out automatically and I'm working with customer support to figure out what's next, so I should be good on that front I guess. Thanks for jumping in ๐
While I have you, this started because when I created a Subscription with ACH Credit invoice, the status of the Subscription was "active" even though the invoice was "Open" (When I tried to set it to "unpaid" using the API, I used some code that accidentally reset the billing cycle, prompting the draft invoices).
Do you know if it's possible to create an ACH Credit invoice without setting the Subscription status to active? Hanzo was saying it's being set to active bc of the send_invoice setting, but it seems strange to set a Subscription to active that hasn't been paid yet.
I'm not sure off-hand if that is supported due to the async nature of ACH Credit Transfers. Are you able to pass different payment_behavior values when creating the Subscription?
https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_behavior
I'm not sure they'd be supported or do what you're looking for, but it's the first thing that comes to mind.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Gotcha, I actually used the Dashboard to create the subscription, but I'll look into doing it that way in the testing environment. Thanks ๐