#ironbeard

1 messages ยท Page 1 of 1 (latest)

mighty gorgeBOT
bright ruin
#

Hey Hanzo ๐Ÿ™‚

pallid hawk
#

Hello ๐Ÿ‘‹
Are you asking about the first invoice of the sub or a recurring one?

bright ruin
#

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

pallid hawk
#

It may be dependent on how you're creating the sub, checking...

bright ruin
#

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

pallid hawk
bright ruin
#

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)

pallid hawk
#

Ah sorry for the delay

#

got pulled away on other threads and completely missed your response.

bright ruin
#

No worries ๐Ÿ™‚

pallid hawk
#

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

bright ruin
#

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"

pallid hawk
#

I think it has less to do with ACH credit transfers and more to do with how subscriptions with send_invoice work

bright ruin
#

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?

pallid hawk
#

I don't think you can update the status from the dashboard. You'll likely need to use the API

bright ruin
#

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?

pallid hawk
#

Yes, I believe so. You'd want to listen for invoice.paid events

bright ruin
#

Gotcha, do you know what the billing_reason would be for that? subscription_create?

pallid hawk
#

For the first invoice?

bright ruin
#

Hmm, I suppose so, yes

pallid hawk
#

Yes, the reason should be subscription_create then

bright ruin
#

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?

fallow flume
#

Good question. I think so but am checking in to that

bright ruin
#

๐Ÿ‘

#

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? ๐Ÿ˜ฆ

fallow flume
#

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

bright ruin
#

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

grand charm
#

Hi again ๐Ÿ‘‹ catching up on context.

bright ruin
#

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

grand charm
bright ruin
#

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?

grand charm
bright ruin
#

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

grand charm
#

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.

bright ruin
#

hmm, hooray ๐Ÿ™‚

#

Due to the proration situation, one of them is for $0.50 and the other for $0.00.

bright ruin
#

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.

grand charm
#

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.

bright ruin
#

Gotcha, I actually used the Dashboard to create the subscription, but I'll look into doing it that way in the testing environment. Thanks ๐Ÿ™‚