Workflow for Co-Branded Onboarding
Co-Branded (OAuth) Onboarding or OAuth Workflow (technical workflow) involves the steps as illustrated in the following diagram:
The merchant’s workflow involves the following steps:
- Merchant clicks on the link at the partner website and gets redirected to PayU for onboarding.
- After onboarding on PayU, they are asked to give consent to their partner for sharing their credentials.
- On acceptance, the merchant is redirected to the URL specified in the partner account.
Example: If the redirect URL is https://abc.com, the merchant will be redirected to the following URL:
https://abc.com?auth_code=${code}&merchantId=${mid}
Note: The steps to get the merchant credentials require only two APIs. This removes the entry of merchant key and salt on a partner website. PayU recommends this for the seamless onboarding of merchants.
- From the above authorization code, call valid Auth code and client API. For more information, refer Validate Auth Code and Client.
{{hub_base_url}}/oauth/token
Partner will get access token in response
- Call the Credential API using the access token from Step 4. For more information, refer to Get Merchant Credentials API
{{partner_base_url}}/api/v1/merchants/{{mid}}/credential
Merchant Sign-Up Workflow with Co-Branded Onboarding
To sign up a merchant using OAuth:
- Navigate to the OAuth link appended with the new email id in the following format:
https://onboarding.payu.in/app/account/signup?reseller_id=<Merc ID>&email=<Merchant mail ID to sign-up>
Where <Merchant ID
> is substituted with reseller ID and <Merchant mail ID to sign-up
> is substituted with merchant mail ID to sign-up.
For example:
https://onboarding.payu.in/app/account/signup?reseller_id=11ea-c29b-c691cce0-8256-02aa98a2d2b0&[email protected]
The Merchant Sign-up page is displayed.
- Enter the merchant’s phone and password.
- Click Next.
Note: If the mobile number already exists, the following message is displayed.
- Enter the OTP sent to the mobile number that was entered by you in Step 1.
- Enter the OTP sent to your email ID.
- Select any of the following roles:
- Business Owner
- Developer
- Customer
A list of questions is displayed on the What are you looking for from PayU? page similar to the following screenshot:
- Provide input for each question on the What are you looking for from PayU? page.
A welcome message is displayed similar to the following screenshot.
- Click Activate Account.
The Complete your full KYC page, similar to the following screenshot is displayed. For more information on completing your KYC, refer to Activate Account
Merchant Login Workflow with Co-Branded Onboarding
The merchant login workflow with Co-Branded (OAuth) Onboarding involves:
- Navigate to the OAuth link appended with the new email id in the following format:
https://onboarding.payu.in/app/account?reseller_id=<Merchant ID>&email=<Merchant mail ID to sign-up>
Where <Merchant ID
> is substituted with reseller ID and <Merchant mail ID to sign-up
> is substituted with merchant mail ID to sign-up.
For example:
The Merchant Login page is displayed.
-
Enter the merchant password and click Verify.
The Authorize Your Account page is displayed.
-
Click Allow access to the account to provide consent.
A confirmation message is displayed, similar to the following screenshot:
- Click Back to <app name> app.
Updated about 1 year ago