#sandesh

1 messages · Page 1 of 1 (latest)

lament owlBOT
dense harness
#

Hello 👋
How exactly are you getting this access token? Are you using Oauth?

blazing rivet
#

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 );```
spring rivet
#

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

blazing rivet
#

But there few other WordPress plugins, who does this.

#

Does it required some extra permission for account?

spring rivet
#

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).

blazing rivet
#

Oops. Let me create a video for reference to show you the scenario so you can understand it better.

spring rivet
#

please, no video, that wouldn't help

#

if you have a question in text, please ask it here. We can't commit to anything more than that in the scope of this channel, it's for specific coding/technical questions that you might have.