I would like to understand main steps to get a merchant's key for an iframe https://docs.clover.com/docs/using-the-clover-hosted-iframe that used to create object new Clover().
1 Step: User add some goods to a cart on my site
2 Step: User go to a payment page on my site.
3 Step: The my site redirect to the clover site for authorization.
https://docs.clover.com/docs/configuring-oauth-20#step-1-request-merchant-authorization
4 Step: After positive authorization user redirected to my site on a redirect url with the code)
5 Step: My site server generate request to a clover server to get autch_token
https://docs.clover.com/docs/obtaining-an-oauth-token
6 Step: My site server generate request to a clover server to get a merchant's key
https://docs.clover.com/reference/getapikey
7 Step: A merchant's key using to create constant clover from new Clover().
For example:
const clover = new Clover('39c7b87101f44739c823362203d21f89');
Am I right? Or there is an other way to get a merchant's key?