#kanohian

1 messages · Page 1 of 1 (latest)

thorny canopyBOT
slender anchor
#

Hi there. Can you share a subscription id where this happened?

dreamy delta
#

it seems like direct subscription does not generate an invoice at the moment of suscription

#

sure

#

sub_1MPWq6GGCGfoPLShsT22QYab

#

this little one

#

I am using laravel cashier and a pretty old version, so I dont know the invoice settings how are configured

#

this is the subscription request req_FjlejDKOEFpcEi

#

and its associated latest invoice in_1MPWq6GGCGfoPLShlV6CwV0g

#

which is 0

slender anchor
#

Balance was applied

#

Look above

dreamy delta
#

but why in the subscription events

#

it spams another invoice per $0.00 ??

slender anchor
#

What do you mean?

dreamy delta
#

look

#

evt_1MPWq9GGCGfoPLShrrNrZid4

slender anchor
#

What's the issue with that event? Can you go in more detail?

dreamy delta
#

sure

#

it translates that now my latest invoice

#

is paid $0.00 invoice

slender anchor
#

Correct. That's because starting_balance: -4200

dreamy delta
#

oh I see

#

but it applies to customer credit

#

problem is, when subscription status goes to active we store the latest_invoice of that subscription

#

but because of this, that latest invoice not always matches the cost of subscription

#

any workaraound for this??

slender anchor
#

What are you trying to do exactly?

#

You just need to store the price of the sub on your end (wihtout any credits applied)?

dreamy delta
#

kind of. but the guys who implemented this assumed for some reason that latest_invoice would always match subscription cost

#

nevermind. I will refactor that and will take the subscription cost

#

thanks a lot