#aksharj-test-webhook

1 messages · Page 1 of 1 (latest)

uneven oyster
native nexus
#

yes, have used this, but is it possible to trigger it for a real user in test environment?

uneven oyster
#

stripe trigger invoice.upcoming

native nexus
#

ok but looks like i cant specify a customer here?

#

i want to test the logic i have for this event

uneven oyster
native nexus
#

would need a valid customer for this

uneven oyster
#

stripe trigger invoice.upcoming --override customer=cus_123

native nexus
#

you are the best @uneven oyster many thanks, this is exactly what i needed

#

have a nice day

uneven oyster
#

Np!

native nexus
#

seem to get a unknown flag: --override

#

stripe trigger invoice.upcoming --override customer=cus_Kf1cYWGEAlWVer

uneven oyster
#

Hmm, that's weird

#

Which version of the CLI do you have? stripe -v

native nexus
#

stripe version 1.7.0

#

does the cli need an update at my end?

uneven oyster
#

It shouldn't do, no

#

Checking up on this

native nexus
#

ok

uneven oyster
#

Can you try and update the CLI? This must be pretty new

native nexus
#

ok, doing it now

uneven oyster
#

Think it was added in 1.7.2

native nexus
#

cool, upgrading the cli now

#

see this message now

#

⣟ Checking for new versions... The event ‘invoice.upcoming’ is not supported by the Stripe CLI.

#

stripe version 1.7.8

uneven oyster
#

Yeah that was my next thing 😆

native nexus
#

ah ok

#

so any workaround? 🤔

uneven oyster
#

You'd just need to 'trigger' that event manually: Setup a subscription with the desired Customer with a very short trial

native nexus
#

ok

uneven oyster
#

Why specifically the invoice.upcoming event?

native nexus
#

i have started listening to this event, to send ourselves an email that a user will be sent a reminder via stripe

#

the webhook logic is setup i need to test it

#

i think i can copy the invoice object, and run the script from rails console

#

btw, when a upcoming.invoice event is triggered, has Stripe already sent a email reminder to the user?

uneven oyster
#

We can't guarantee ordering