#Omri-Webhook
1 messages · Page 1 of 1 (latest)
yes
customer.subscription.deleted, as far as I understand your question. And cancelled I think is the status
it is not subscription_schedule.canceled ?
I mean when the subscription end (end date)
might be both!
easiest way to know would be to test it using Test Clocks (https://stripe.com/docs/billing/testing/test-clocks)
not sure what you mean or how that would change my answer
I try to use test-clock, but I get an error #<NameError: uninitialized constant Stripe::TestHelpers> when I'm doing clock = Stripe::TestHelpers::TestClock.create( {frozen_time: 1635750000, name: 'Annual renewal'}, )
the test-clock is from a certain version of gem Stripe?
👋 taking over for my colleague. Let me catch up.
I'm Advance the clock for test, but nothing happens with the subscription object
you've created a clock on an account and you're trying to use it on another account
you can use our test cards https://stripe.com/docs/testing#use-test-cards
do you know why I get the event evt_1LSHfCGo3VrYN4HOADXYFB6q invoice.payment_failed for the second subscription invoice?
I'm checking for you
sorry for the late reply
Basically there's no payment method on the invoice, nor on the subscription or the customer
so it's normal that the invoice would fail to be paid
How can I add test-clock to exist customer?
I need a create with valid payment method and test-clock and connect account, I can do that from the dashboard?
I did not succeed to do that from the code
Sure, you can setup a test clock from the Dashboard. What are you actually trying to test here?
future invoice payments of subscription