Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions documents/oAuthTokenClient.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -18,7 +18,7 @@ $attributes = [
$onboarding_signature = $utility->generateOnboardingSignature($attributes, "<YOUR_CLIENT_SECRET>");

// Not an promise
$authUrl = $oauth->oauthClient->getAuthURL([
$authUrl = $oauthClient->getAuthURL([
"client_id" => "<YOUR_CLIENT_ID>",
"response_type" => "code",
"redirect_uri" => "https://example.com/razorpay_callback",
Expand Down Expand Up @@ -144,4 +144,4 @@ $oauth->oauthClient->revokeToken([
**PN: * indicates mandatory fields**
<br>
<br>
**For reference click [here](https://razorpay.com/docs/partners/platform/onboard-businesses/integrate-oauth/integration-steps)**
**For reference click [here](https://razorpay.com/docs/partners/platform/onboard-businesses/integrate-oauth/integration-steps)**