#Omri-Webhook

1 messages · Page 1 of 1 (latest)

vast trout
#

Hi there, are you using subscription schedule?

wide lagoon
#

yes

glad reef
#

customer.subscription.deleted, as far as I understand your question. And cancelled I think is the status

wide lagoon
#

it is not subscription_schedule.canceled ?

wide lagoon
glad reef
glad reef
wide lagoon
#

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?

wide lagoon
#

why is that?

#

I found the issue

drowsy monolith
#

👋 taking over for my colleague. Let me catch up.

wide lagoon
#

I'm Advance the clock for test, but nothing happens with the subscription object

drowsy monolith
#

you've created a clock on an account and you're trying to use it on another account

wide lagoon
#

thank you

#

how can I create test PM for subscription? I'm using postman

drowsy monolith
wide lagoon
#

do you know why I get the event evt_1LSHfCGo3VrYN4HOADXYFB6q invoice.payment_failed for the second subscription invoice?

drowsy monolith
#

I'm checking for you

drowsy monolith
#

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

wide lagoon
#

How can I add test-clock to exist customer?

drowsy monolith
#

that's not possible

#

you'd have to create a new customer

wide lagoon
#

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

limber temple
#

Sure, you can setup a test clock from the Dashboard. What are you actually trying to test here?

wide lagoon
#

future invoice payments of subscription

limber temple
#

What part are you struggling with?

#

What kind of Connect payments/subscriptions are you processing? Direct? Destination?

wide lagoon
#

I tell me problem

#

I use postman for create subscription

#

but the PM is invalid

#

I use the PM_ID : pm_card_visa

#

I get invoice.payment_failed from the webhook event