To create a test application you need to have an OAuth access on your Razorpay account. To request the OAuth feature, You can get in touch with us at https://razorpay.com/support.
Once you have obtained access, follow the instructions given below to create a test application:
On your Razorpay Dashboard, click Partner.
Click Applications to open the Applications tab. This tab displays a list of created applications.
You can create a new application by clicking Create Application.
In the Create Application screen:
- Enter the Name of your application. For example, "Acme Corp". This would appear on Razorpay's authorization page.
- Enter the Website URL of the application.
- Click Upload App Icon to upload the app's logo. The uploaded icon will be shown to your users on Razorpay Connect screens. The icon will also be displayed in the connected applications list.
The dashboard only allows square images to be uploaded as App Icon.
- Click Save.
This will create an application on your Razorpay account, which will appear on the list of created applications. An Edit Application page will show the application settings for both Development and Production clients.
Client ID and Client Secret are predefined for both Development and Production clients. Use them to make request calls to Razorpay servers.
Enter the Redirect URIs in comma-separated format.
For Production client:
Only URLs with
httpsare supported. For example,
Click Preview OAuth Page. This will redirect you to the authorization page where you can authorize or decline access to your test application for your account. Post setup, you can request access to the merchant account/data for your application in the same manner.
For development clients, we support
redirect_urion Preview. You can; however, replace it with any of the valid URLs as specified in the Development client settings and reload the page.
Click Authorize. This will redirect you to the
redirect_urisent in the request URL along with the auth code.
Copy the auth
codefrom the URL and use it to obtain the new access token.
While making the API request, pass
mode=test. This will fetch you an access token for the test mode. Although the default is Live mode, testing with live token would not help much unless your account is activated.
For both production and development clients, you can control the accessibilty of the application using the
scope=read_write) access would grant edit access to the application while
scope=read_only) would allow only view access.
Your test application will appear on the list of Connected Applications on the merchant's Dashboard.