#asghar7978

1 messages ยท Page 1 of 1 (latest)

vapid mantleBOT
#

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.

sinful relic
#

howdy

#

what are you having trouble with?

#

only one event is being set in request body
Can you explain some more about what you're expecting?

#

Each event is a separate request to your endpoint

upbeat folio
#

evt_1OQFIXClEq3LQAa9LbTboHKG
Please see this event, im only seeing and getting customer.subscription.created
event on server and dashboard while i want to recieve customer.subscription.updated as well.
tho i have added in webhook event but could not getting it on server, not being shown on dashboard as well

#

and please help me if i have config the webhook incorrectly.

sinful relic
#

It looks like you have, but no such events have been produced yet for your endpoint to receive

#

You'd get customer.subscription.updated when a subscription renews at the end of the cycle, or you change it in some way, for example

upbeat folio
#

but locally on test mode whenever i checkout the webhook calls and event customer.subscription.updated gets called.

upbeat folio
#

?

#

there

sinful relic
#

Yep, looking at things

upbeat folio
#

oh alright, i just text so it dont get close

sinful relic
#

Ok, this is because you live mode usage is not the same as your test mode usage

#

In live mode you're using a 100% off coupon, so there is not payment required. The subscription is created with status=active directly

#

While in your tests you use no such coupon/discount, and the first invoice requires payment. The subscription then is created as status=incomplete until that payment succeeds, then is updated to status=active

#

That's why you get the event in test mdoe but not live mode

#

Checking out in live mode without a discount I expect will produce the same event

#

Similarly, if you test with a 100% discount in test mode you won't get the event

upbeat folio
#

please wait

#

please

sinful relic
#

I'm not going anywhere ๐Ÿ™‚

#

Take your time

upbeat folio
#

how i have to create the coupon code in product catalog can you please share?

sinful relic
#

What do you mean?

upbeat folio
sinful relic
#

You create a test mode discount just as you did in live mode

upbeat folio
#

there was some way on dashboard product catalog but im unable to see now

#

So i tested this you are so much accurate, really nice. Now i want to know how to enable the webhook event subscription.customer.updated if its 100% coupon

sinful relic
#

You don't, the subscription is not updated at that point

#

you'll get that later when the subscription renews, though, or you can update it manually

upbeat folio
#

from strip dashboard?

sinful relic
#

Or using the API, or the customer portal

#

any update to the subscription would trigger that event

upbeat folio
#

and why the webhook is called when the promo code is created?

sinful relic
#

You shouldnt test in live mode, i'm just desribing how event will happen when customers use it

sinful relic
upbeat folio
sinful relic
#

What do you mean? Can you share a request / event/ object ID showing what you're seeing?

upbeat folio
#

let me share it somehow

#

the moment i created promotion code the backend webhook api called.

sinful relic
#

Oh, yea, sure

#

That's another event entirely

#

For the promotion code creation

upbeat folio
#

alright. will make a coupon for 99% and check the live mode. btw "you are Savior"

sinful relic
#

Sounds good -- you're welcome ๐Ÿ™‚

#

Good luck with your work

upbeat folio
#

tysm again.

vapid mantleBOT
upbeat folio
#

how to contact you again? is this possible?

sinful relic
#

You can just come back any time and post a new message in #dev-help and myself or a teammate will be happy to help