#stokedowl

1 messages · Page 1 of 1 (latest)

cerulean fernBOT
stray tree
sage zephyr
#

Hi Jack, I am new to stripe.
Is this the one - req_kEAG9sbO7VDmTW

stray tree
#

Yes that's the one, let me take a look

#

OK. So the Test clock advancement is in progress when this request is made.

#

You can retry the request later after the Test clock advancement is completed

sage zephyr
#

How would I know when the advancement is completed?

This in the real time would not happen, i believe?

stray tree
#

Test clock is only available in test mode

sage zephyr
#

Is this ok to use in prod too?

stray tree
#

This event won't happen in prod.

sage zephyr
#

ok, I just tried the test_helpers.test_clock.ready but I don't get any information related to subscription that I can use in the event. 😦

stray tree
#

This webhook is about test clock, not subscriptions.

sage zephyr
#

But i would need to update subscription metadata and I get the clock error.

#

in the normal scenario

stray tree
#

In test mode, you can listen to totest_helpers.test_clock.ready and only perform subscription update when the test clock is ready.

sage zephyr
#

Sorry, I'm not getting it.

In order for me to update the subscription metadata, I need a few information from the metadata that i would use as a payload for my APIs. I wouldn't get this information from test_helpers.test_clock.ready. How would I do that? Can you share me an example please.

stray tree
#

Have you used a webhook before?

sage zephyr
#

Stripe, first time actually

stray tree
#

But I really don't think you need to spend the effort to handle the test clock webhook events because they won't even happen in prod.

To fix your current problem, you should just retry the same request later.