#battbot-webhook-events-test

1 messages ยท Page 1 of 1 (latest)

idle monolith
#

Hello ๐Ÿ‘‹
Can you share the account ID you're working with?

onyx idol
#

connect account? or platform account?

#

where do i find the platform account id?

idle monolith
#

The account on which the webhook endpoint is registered

onyx idol
#

acct_18CvSuJ93KfFVesb

#

evt_3LNeiVR8yvvpRtdg1AkoOzLD this is an example of the the event

#

the webhook urls are "connect" type

idle monolith
#

I believe this is expected with connect webhooks

For Connect webhooks, itโ€™s important to note that while only test webhooks will be sent to your development webhook URLs, both live and test webhooks will be sent to your production webhook URLs. This is due to the fact that you can perform both live and test transactions under a production application. For this reason, we recommend you check the livemode value when receiving an event webhook to know what action, if any, should be taken.
https://stripe.com/docs/connect/webhooks#:~:text=For Connect webhooks,should be taken.

onyx idol
#

yes, we filter it out on our production server

#

but the thing is, the event isn't sent for the test environment

#

so our test cases are failing on our test environment

finite laurel
#

๐Ÿ‘‹ stepping in here as hanzo needs to step away.

onyx idol
#

ok

finite laurel
#

For Connect endpoints your livemode endpoint will receive both livemode and testmode events as mentioned above. Testmode endpoints will only receive testmode events.

#

You are stating that your testmode endpoint isn't receiving these events?

onyx idol
#

yes

#

is it because the connect account was a live mode account rather than a test mode account?

#

acct_1IIgBhR8yvvpRtdg is the connect account the payment was for

finite laurel
#

Taking a look at the above event

#

One sec

#

So yes

#

The reasoning here is that the Connected Account is connected in live mode

#

So both livemode and testmode events will be sent to the livemode endpoint

#

The events would only be sent to the testmode endpoint if the account is connected in testmode.

onyx idol
#

how do we enable a connect account for test mode?

finite laurel
#

With custom accounts you can't. You would create a testmode account to do so.

#

By "you can't" I mean you can't connect that account that was created in livemode in testmode as well.

onyx idol
#

so test mode accounts has to be created seperately from live mode accounts?

#

ok, thank you for the help