#sandesh
1 messages · Page 1 of 1 (latest)
Hello 👋
How exactly are you getting this access token? Are you using Oauth?
Yes Oauth
Hello
Parameters I pass to get access token
'grant_type' => 'authorization_code',
'code' => $code,
];```
This is how I get the token
$response[$mode] = \Stripe\OAuth::token( $data );```
do you work with @mellow sky by any chance?
ultimately the answer is you can't do this.
you never create webhook endpoints for the accounts themselves, that is not supported.
instead you create an endpoint on your platform that listens to events that happen on them. https://stripe.com/docs/connect/webhooks
But there few other WordPress plugins, who does this.
Does it required some extra permission for account?
they don't it this way then; in certain older integrations it might be possible if you have the user copy and paste their API key to you as a plugin and you just make the call that way instead of using Connect.
and no there's no permission for this, it's not something we want to support as it creates a lot of extra load on our webhook infrastructure, generally there's a better way to design what you're trying to accomplish(if you have more context on that).
Oops. Let me create a video for reference to show you the scenario so you can understand it better.