OAuthTokenClient constructor
OAuthTokenClient()
Implementation
OAuthTokenClient()
:
// Assuming API can handle initialization without credentials for OAuth client scenarios
// Or pass dummy values if needed, but they won't be used for these calls.
// Alternatively, create a simpler HTTP client here specifically for OAuth.
apiClient = API(
hostUrl: AUTH_HOST_URL,
ua: 'razorpay-dart-oauth@${Razorpay.VERSION}', // Use Razorpay version
// No keyId/keySecret or oauthToken needed initially for OAuth client
// Credentials are passed in the request body for token exchange.
);