py5paisa icon indicating copy to clipboard operation
py5paisa copied to clipboard

Where to get the Redirect URL for OAUTH

Open swargamr opened this issue 2 years ago • 1 comments

  • 5paisa Python SDK version: Latest
  • Python version: 3.10
  • Operating System: Windows 10

Description

I was looking to use the OAUTH to login into 5Paisa for login

First get a token by logging in to -> https://dev-openapi.5paisa.com/WebVendorLogin/VLogin/Index?VendorKey=<Your Vendor Key>&ResponseURL=<Redirect URL>

Pass the token received in the response url after successful login to get an access token (this also sets the token for all the APIs you use)-

client.get_access_token('Your Response Token')

From the above login url, I was able to input the User key (got from Your API keys after logging into 5 paisa) as VendorKey, however I couldn't find the redirect url in the API keys page. How should I pass the redirect url in the above login to get the Response Token?

What I Did

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

swargamr avatar Mar 07 '22 20:03 swargamr

Hi @swargamr ,

Response URL can be page where you would want redirection to happen with the token. Even localhost port works as redirect url

5paisa avatar Mar 08 '22 14:03 5paisa