Razorpay.setup('YOUR_ACCESS_TOKEN')
Razorpay.setup_with_oauth('access_token')
Reference : https://github.com/razorpay/razorpay-ruby/tree/master?tab=readme-ov-file#using-access-token
Razorpay.setup('YOUR_ACCESS_TOKEN')
Razorpay.setup_with_oauth('access_token')
Reference : https://github.com/razorpay/razorpay-ruby/tree/master?tab=readme-ov-file#using-access-token
Success
Why not failure cases here?
.NETchange language
We also support this flow in Java too. Why havent we considered that here?
API Test Keys
Please update the link here. Basically telling how to generate access token to use onboarding APIs.
Dictionary<string, object> accessTokenRequest = new Dictionary<string, object>();accessTokenRequest.Add("client_id","<CLIENT_ID>");accessTokenRequest.Add("client_secret","<CLIENT_SECRET>");accessTokenRequest.Add("refresh_token","<REFRESH_TOKEN>"); OAuthTokenClient oAuth = new OAuthTokenClient();OAuthTokenClient oAuthToken = oAuth.RevokeToken(accessTokenRequest);String accessToken = oAuthToken["access_token"]; // Initialize the clientRazorpayClient instance = new RazorpayClient(accessToken);
Dictionary<string, object> refreshTokenRequest = new Dictionary<string, object>(); refreshTokenRequest.Add("client_id","<CLIENT_ID>"); refreshTokenRequest.Add("client_secret","<CLIENT_SECRET>"); refreshTokenRequest.Add("refresh_token","<REFRESH_TOKEN>");
OAuthTokenClient oAuth = new OAuthTokenClient(); OAuthTokenClient oAuthToken = oAuth.RefreshToken(refreshTokenRequest); String accessToken = oAuthToken["access_token"];
// Initialize the client RazorpayClient instance = new RazorpayClient(accessToken);
refreshTokenRequest.put("grant_type", "refresh_token")
Remove this line please.
client
instance
client
instance
client
instance
List of webhook events and associated payloads when the account is in activated state.
List of webhook events and associated payloads when the account is in activated kyc pending state.
Note: This state is applicable only to no-document onboarded merchants onboarded via Onboarding APIs
activated
activated_kyc_pending
Activatedđź”—
Activated Kyc Pending
activated
activated_kyc_pending
activated
activated_kyc_pending
activated
activated_kyc_pending
Activatedđź”—
Activated Kyc Pending
activated
activated_kyc_pending
activated
activated_kyc_pending
Product Payment Gateway Activatedđź”—
Product Payment Gateway Activated Kyc Pending
Sample Payloads When Status is Activated
Create a new page similar to this-
"Sample Payloads When Status is Activated Kyc Pending"
Rejected
Add one more Status: Activated Kyc Pending
Add same events for it as added for other statuses
boolean This parameter is optional but needs to be added to accept terms and conditions. Possible value is only true.
boolean Determines whether terms and conditions are accepted. Send this parameter along with the "ip" parameter. Possible values: true
Add one more parameter below tnc_accepted-> "ip"(conditional) "string" The IP address of the merchant while accepting the terms & conditions. Send this parameter along with the "tnc_accepted" parameter.
optional
conditional
mandatory
conditional
"tnc_accepted": true
Please remove this parameter from all the requests in this section (eg: Netbanking, Card, Wallet etc)
Sample Code for Updating Settlement Account Details and Providing OTP Detailsđź”— PG Request PG Response PL Request PL ResponseCopy
Please remove this section. We already talked about it above
Sample Code for Updating Settlement Account Detailsđź”—
Sample Code for Updating Settlement Account Details and Providing OTP Details
the payment methods object has not been used.
the settlements & otp specific details are submitted and other product configurations are requested. Payment methods object has not been used here.
You can update any optional field.
You cannot update any fields.
Fetch Terms and Conditions API.
Looks like the link is incorrect. Correct link as provided at other places in this page- https://betasite.razorpay.com/docs/razorpay/fix-xpress-onboarding-issues/api/partners/terms-conditions/#fetch-terms-and-conditions-for-a-sub-merchant
activated
Add one more status as "activated_kyc_pending" just above "activated"
product activation.
remove the link provided here
The IP address. Sent with the tnc_accepted parameter.
The IP address of the merchant while accepting the terms & conditions. Send this parameter along with the "tnc_accepted" parameter.
optional
remove this
activated
Add one more status as "activated_kyc_pending" just above "activated"
product activation.
Please remove the link provided here
requirement
optional requirement
requirement
optional requirement
required
optional
Required
Optional