Issue:
fix(connector): [Cryptopay]fix redirection for cryptopay

## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD

## Description
<!-- Describe your changes in detail -->
add validation for metadata for cryptopay. This method will return None if metadata is not of type Object. Since connector accepts only Object.

### Additional Changes

- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables

<!--
Provide links to the files with corresponding changes.

Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->


## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.

If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->


## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Test cases - Make a payment with metadata - null, bool, and object
expected behavior - Payment should be successful

payment request - 
```
{
    "amount": 100,
    "currency": "EUR",
    "confirm": false,
    "capture_method": "automatic",
    "capture_on": "2022-09-10T10:11:12Z",
    "customer_id": "StripeCustomer",
    "email": "guest@example.com",
    "name": "John Doe",
    "phone": "999999999",
    "phone_country_code": "+1",
    "description": "Its my first payment request",
    "authentication_type": "no_three_ds",
    "return_url": "https://google.com",
    "payment_method": "crypto",
    "payment_method_type": "crypto_currency",
    "payment_method_data": {
        "crypto": {
            "pay_currency": "XRP"
        }
    },
    "billing": {
        "address": {
            "line1": "1467",
            "line2": "Harrison Street",
            "line3": "Harrison Street",
            "city": "San Fransico",
            "state": "California",
            "zip": "94122",
            "country": "AF",
            "first_name": "joseph",
            "last_name": "Doe"
        },
        "phone": {
            "number": "8056594427",
            "country_code": "+91"
        }
    },
    "statement_descriptor_name": "joseph",
    "statement_descriptor_suffix": "JS",
    "metadata": {
        "udf1": "value1",
        "new_customer": "true",
        "login_date": "2019-09-10T10:11:12Z"
    }
}
```

metadata is not passed to connector if it is empty, Null, bool
![Screenshot 2024-04-02 at 5 23 30 PM](https://github.com/juspay/hyperswitch/assets/70575890/0a616bd7-229e-49b3-989f-16e9b609643e)
metadata is passed to connector when it is of type Object
![Screenshot 2024-04-02 at 5 24 33 PM](https://github.com/juspay/hyperswitch/assets/70575890/01544502-c2b9-45cd-ab34-4ea5e77e5816)


## Checklist
<!-- Put an `x` in the boxes that apply -->

- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
- [ ] I added a [CHANGELOG](/CHANGELOG.md) entry if applicable


Resolution:
<think>
PR Context:
- Title: fix(connector): [Cryptopay]fix redirection for cryptopay
- Merged: 2024-04-03T06:18:37Z
- Files changed: 2 files
- Commits: 1 commits

Implementation approach:
## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD

## Description
<!-- Describe your changes in detail -->
add validation for metadata for cryptopay. This method will return None if metadata is not of type Object. Since connector accepts only Object.

OSS PR - #4272
### Additional Changes

- [ ] This PR modifies the API contract
- [ ] This PR
</think>

To implement this, you'll need to modify:


**Detailed Implementation:**


**Commit 1:** fix(connector): [Cryptopay]fix redirection for cryptopay (#4279)
Co-authored-by: hyperswitch-bot[bot
Files to modify:


**crates/router/src/connector/cryptopay/transformers.rs**
  Modify existing code

**crates/router/src/connector/utils.rs**
  Add:
    - function: private::get_metadata_as_object