#Charlie-subscription-checkout

1 messages ยท Page 1 of 1 (latest)

hearty venture
#

Hello ๐Ÿ‘‹
Can you give me an example request object where this is happening? It should look something like req_123xyz

torn scarab
#

req_xyqVTRSONYcGyv

#

I guess

#

you mean the full one?

#

๐Ÿ˜†

#

Or is the id enough

hearty venture
#

ID is fine ๐Ÿ™‚

torn scarab
#

tried with both, trial_end and trial_period_days

hearty venture
torn scarab
#

Then it must be the golang stripe library which is doing this

#
SubscriptionData: &stripe2.CheckoutSessionSubscriptionDataParams{
            TrialPeriodDays: trialPeriodDays,
        },
``` it is given to it, and `trialPeriodDays` is 30 in this case
#

I might have found the root cause, I'll be back once I am sure

#

Alright, my mistake sorry. There was an internal tool which was overwriting that specific argument by accident. Should have seen that.

Another quick questions as I now saw that invoices are directly generated and marked as paid for the trial period, how do I identify them as such invoices in trialing? By the subtotal of 0?

hearty venture
#

Yeah I think that's correct

torn scarab
#

Alright, thanks for the help! And again sorry for my stupidity ^^

hearty venture
#

Oh you're fine. additionally you look at billing_reason which should say subscription_create for the first invoice

#

but a first invoice may or may not have zero subtotal if you disable trails in future