#phant

1 messages · Page 1 of 1 (latest)

broken heronBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

  • phant, 59 minutes ago, 35 messages
  • phant, 15 hours ago, 96 messages
  • phant, 19 hours ago, 8 messages
  • phant, 19 hours ago, 14 messages
  • phant, 2 days ago, 37 messages
stray sorrel
#

hello! have you tried advancing the test clock a few more times?

wet sage
#

yes i did

#

does it require to be set 10mins before or something to hit the webhook?

#

cause i did set it before 10mins and it didnt trigger

stray sorrel
#

can you share the corresponding object id that you're expecting a webhook event for, and what event type you're expecting to see?

wet sage
#

inovice.paid

stray sorrel
#

okay, what's the invoice id? it'll have the prefix in_

wet sage
#

sub_1OhOp2CqhyxGoBc4B3pweGJn

#

subsription id

stray sorrel
#

what's the invoice id that you're expecting invoice.paid to be generated for? it'll have the prefix in_

wet sage
#

in_1OhOp2CqhyxGoBc4N4YkRDA6

stray sorrel
wet sage
#

but not at 10.36

#

i had set at 10.36

#

it should have hit it again, but it didnt

stray sorrel
#

why would it be delivered again? I'm not sure i understand the issue here. An event would only be delivered once if your server returned a HTTP 200 response status code

wet sage
#

advancing a time clock would not hit the request again?

stray sorrel
#

no, advancing a clock moves the time forward, it doesn't as you put it "hit the request again"

wet sage
#

so whats the point of advancing the time clock?

stray sorrel
wet sage
#

and when that time comes(forward set time) wouldnt it hit the webhook again with invoice.paid?

stray sorrel
#

no, it's already been paid

#

you're moving forward in time

#

e.g. right now it's 10 pm, you moved the time forward by 1 hour, so now it's 11 pm

#

the webhook event has already been sent and delivered, there's no reason to resend

wet sage
#

so how do i make it act like a subsription?

stray sorrel
#

sorry, but can you explain what you mean by how do you make it act like a subscription?

wet sage
#

subscription means deduct payment in every interval

#

thats what i want

stray sorrel
#

you can advance the Subscription to the next billing cycle

wet sage
#

how to i do that

#

thats what i want , i want to get the intervals, so that i can test

stray sorrel
#

for example, if your subscription bills on the 7 of every month, if today is 7 feb and that invoice has already been paid, then advance your test clock to 7 mar

wet sage
#

thats what i did

#

that what i showed u here too

stray sorrel
#

your test clock in the screenshot shows that your current simulation time is 7 feb

wet sage
#

i want it to be 7th feb

#

but in minutes ahead

#

but the webhook did not hit

#

i cannot wait for a month u know, thats the purpose of test clock

stray sorrel
#

maybe lets step back a bit, the webhook is already sent and delivered for the invoice on 7th feb - do you agree with this?

wet sage
#

yes agreed

#

and then advanced it by 20mins

#

get it?

stray sorrel
#

that will do nothing

#

what you want to do is to advance the test clock to 7 March

wet sage
#

why not?

#

why march?

stray sorrel
#

The invoice is already generated and paid for 7 feb

#

you can't go backwards in time

wet sage
#

not backwards

#

im moving forward itself

#

okay let me explain it more clerarly

#

subscription created, invoice was paid at 7th feb - 9.23

#

please note 9.23

#

i then advanced the time to 7th feb 10.36

#

why did not the webhook hit again at 10.36?

#

thats my question

hybrid forum
#

👋 there

#

No it's still the same Invoice, and the same Invoice will only send 1 invoice.paid event, no matter whether the time is, as long as it's not retrying

wet sage
#

invoice is same?

#

but the webhook should hit right?

#

so that i will know that user had paid

hybrid forum
#

No

#

It shouldn't

#

It already sent

wet sage
#

wait on second payment no invoice?

#

why?

hybrid forum
#

Sorry I don't follow the last question. Could you elaborate again?

wet sage
#

i have created a invoice meaning i have paid right

#

so im advancing the time, meaning going for the second payment

#

am i right?

hybrid forum
#

Which time do you mean for the "first payment" and "second payment" here?

wet sage
#

first payment at 7th feb - 9.23 PM

#

second payment - which is when i advanced my time clock to 7th feb - 10.36 ( which did not hit at all)

hybrid forum
#

No that's not the second payment

#

Are you using a monthly price?

wet sage
#

yes

hybrid forum
#

Then it should be 7th March - 9:23 PM

#

It's 1 month

wet sage
#

but thats the point of using TEST CLOCK right, who would wait till 7th match for testing

#

i can have it done anytime i want

#

obviously forward in time, not backward

#

heyy please i have been chatting for more than 1hour please understand my query and resolve it asap

hybrid forum
#

No the point of Test Clock is to advance the time, doesn't affect the billing cycle

stray sorrel
#

the test clock allows you to move the time till 7th Mar

hybrid forum
#

Of course you won't wait unti 7th March, but you can advance the Test clock past 7th March

#

That's the point

wet sage
#

ohh if i advance the clock after 7th march

#

it would hit the webhook right away?

hybrid forum
#

Yes

wet sage
#

thats what i wanted to know, hold on checking after advancing it to 7th march

#

i advanced it to 7th march

#

but no event hit except test_helpers.test_clock.ready

hybrid forum
#

If you look at the Subscription page on Dashboard, do you see the event?

#

The Invoice is still in Draft

#

Advance it 1 more hour

wet sage
#

doing

#

yes it did hit now

#

thanks for that, thats what i wanted to know when will it hit and what to do to hit it

hybrid forum
#

Yeah you are welcomed