#datdevo_webhooks
1 messages ¡ Page 1 of 1 (latest)
đ 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/1366300915908481045
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Did you encounter the error when trying to create a "Connect" type endpoint?
Where do you see the error?
I onboard my customers to Stripe via Stripe Connect, i.e. https://connect.stripe.com/oauth/v2/authorize?response_type=code&client_id=ca_SCrCj53ygFXnX6AmnsRROL3a9LQfQ2EK&scope=read_write&stripe_user[url]=https%253A%252F%252Fj5.test%252Fadministrator%252Findex.php%253Foption%253Dcom_config%2526view%253Dcomponent%2526component%253Dcom_convertforms%2523payments&state=ade31a419801c3d296c9e9eff7fce8a9
After they onboard, they get redirected to my app where I retrieve their credentials (publishable and secret keys) via https://connect.stripe.com/oauth/token.
I then store these on my customers site settings.
After doing so, I am trying to create a webhook to my customers stripe account using their secret key, with the PHP SDK:
try {
return WebhookEndpoint::create(
[
'url' => self::getURL(),
'enabled_events' => WebhookRoute::getWebhooksEventsList(),
'connect' => false,
'api_version' => self::STRIPE_API_VERSION,
'description' => sprintf('ConvertForms endpoint (%1$s mode)', $mode),
],
['api_key' => $access_token]
);
} catch ( Exception $e ) {
return $e->getMessage();
}
But this throws the error "You are not permitted to configure webhook endpoints on a connected account. Did you mean to create a Connect webhook on your account instead"
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
No you can't do that. You can only create a connect type webhook end point on your own account. See https://docs.stripe.com/connect/webhooks
I've seen WPForms (a WordPress plugin) use Stripe Connect (their onboarding looks exactly the same as Standard, i.e. the onboarding URL is exactly with the one I shared above), and they create a webhook on my stripe account. How do they do that?
Not sure, will need to write to Support to investigate deeper
okay thanks