> For the complete documentation index, see [llms.txt](https://www-covercompared.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www-covercompared.gitbook.io/docs/covercompared-dapp/contemporary-covers/mso.md).

# MSO

MSO - Medical Second Opinion. Cover Compared had partnered with Wishing Well Corp to enable users to buy MSO via crypto

### Buy Product by ETH

To buy an MSO product using ETH the user will call the  `buyProductByETH` function.

```c
    function buyProductByETH(
        string memory productName,
        uint256 priceInUSD,
        uint256 period,
        uint256 conciergePrice,
        bytes memory sig
    ) 
```

#### Input variables :&#x20;

* productName : refers to the name of the insurance product being bought
* priceInUSD : refers to the price of the product in USD
* period : refers to the duration for which the cover is being bought
* conciergePrice : refers to the price of an added service offered by MSO
* sig :  refers to the signature signed by CoverCompared to authenticate/validate the transaction and price

### Buy Product by Token

To buy an MSO product using a supported ERC20 the user will call the  `buyProductByToken` function.

```c
    function buyProductByToken(
        string memory productName,
        uint256 priceInUSD,
        uint256 period,
        address _token,
        address _sender,
        uint256 conciergePrice,
        bytes memory sig
    )
```

#### Input variables :&#x20;

* productName : refers to the name of the insurance product being bought
* priceInUSD : refers to the price of the product in USD
* period : refers to the duration for which the cover is being bought
* \_token : refers to the ERC20 token address in which the payment is being made
* \_sender : refers to the sender
* conciergePrice : refers to the price of an added service offered by MSO
* sig :  refers to the signature signed by CoverCompared to authenticate/validate the transaction and price
