The steps involved in creating a child merchant are:
Before you onboard child merchants, ensure you have followed the Prerequisites (one-time).
Before you onboard child merchants, you need to ensure the following (one-time process):
- Caller client service should be registered on Hub (PayU’s oAuth2 Service ) with the details as described in the following table:
|The legal name of the customer.
|Customer Service Name
|The service name of the customer.
|Customer Owner phone number
|The phone number of the owner who is assigned for the customer.
|Customer Owner Email
|The customer owner’s email ID.
|The scope to be whitelisted on the client must be refer_child_merchant
|The grant type must be specified as client_credentials in this field.
|Provide External as input since you are outside the PayU ecosystem.
|Access Token Expiry Time
|The access token expiry time from the times of creation (in seconds). There is no defined limit for configuring the access token expiry time.
- refer_child_merchant scope should be whitelisted on caller client on Hub
- Get Aggregator flag enabled on the parent merchant
Use the get_client_token API with the scope as refer_child_merchant to create a client token from Hub. For more information, refer to Get Client Token API
You can create child merchants using the create_child_merchant API. For more information, refer to Create Child Merchant API
After you onboard your child merchants, you can fetch the child merchant details as described in the following section: