#_api

1 messages ¡ Page 1 of 1 (latest)

glass daggerBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1315580887374495838

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

hushed flame
#

The Webhook will be enabled by default after creating it via API

#

Could you share the example event ID (evt_xxx) and Webhook endpoint (we_xxx) that you expect to receive the event?

edgy folio
#
  WebhookEndpointCreateParams params =
                WebhookEndpointCreateParams.builder()
                        .addEnabledEvent(WebhookEndpointCreateParams.EnabledEvent.PAYMENT_INTENT__SUCCEEDED).
                        addEnabledEvent(WebhookEndpointCreateParams.EnabledEvent.PAYMENT_INTENT__CANCELED).
                        addEnabledEvent(WebhookEndpointCreateParams.EnabledEvent.PAYMENT_INTENT__PAYMENT_FAILED)
                        .setUrl(url)
                        .setApiVersion(WebhookEndpointCreateParams.ApiVersion.VERSION_2020_08_27)
                        .build();
WebhookEndpoint.create(params);

so just doing something like this will enable the webhook?
i can't share any detials on the webhook that is coming from stripe since i'm not the owner of the account

hushed flame
#

Yes, this should enable a Webhook endpoint

#

I'd recommend sharing the example Payment Intent (pi_xxx) and Webhook endpoint (we_xxx), so that I can have a check

edgy folio
#

those are not logged at all so i can't share them i will ask the client to provide me with more detials
just wanted to check that this will enable the webhook
thanks river!
i aprreicate your fast resposnes and your help