diff --git a/documents/oAuthTokenClient.md b/documents/oAuthTokenClient.md index 50cabeb..becb838 100644 --- a/documents/oAuthTokenClient.md +++ b/documents/oAuthTokenClient.md @@ -3,11 +3,11 @@ ### Generate Authorize Url ```php -use Razorpay\Api\OAuthTokenClient; +use Razorpay\Api\OAuthClient; use Razorpay\Api\Utility; // Initialize client -$oauth = new OAuthTokenClient(); +$oauthClient = new OAuthClient(); $utility = new Utility(); $attributes = [ @@ -18,7 +18,7 @@ $attributes = [ $onboarding_signature = $utility->generateOnboardingSignature($attributes, ""); // Not an promise -$authUrl = $oauth->oauthClient->getAuthURL([ +$authUrl = $oauthClient->getAuthURL([ "client_id" => "", "response_type" => "code", "redirect_uri" => "https://example.com/razorpay_callback", @@ -144,4 +144,4 @@ $oauth->oauthClient->revokeToken([ **PN: * indicates mandatory fields**

-**For reference click [here](https://razorpay.com/docs/partners/platform/onboard-businesses/integrate-oauth/integration-steps)** \ No newline at end of file +**For reference click [here](https://razorpay.com/docs/partners/platform/onboard-businesses/integrate-oauth/integration-steps)**