Bug: [FEATURE] [CRYPTOPAY] Pass network details in payment request



### Feature Description

The customer should be able to choose the supported network in case of doing cryptocurrency payments via Cryptopay. 

### Possible Implementation

The supported networks will be shown on SDK and the chosen network will be passed on to Cryptopay. If no network is chosen then Cryptopay will choose the default network for that transaction.
https://developers.cryptopay.me/guides/currencies/currencies

### Have you spent some time checking if this feature request has been raised before?

- [X] I checked and didn't find a similar issue

### Have you read the Contributing Guidelines?

- [X] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md)

### Are you willing to submit a PR?

Yes, I am willing to submit a PR!
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs
index cd405e3ca98..fe46d342161 100644
--- a/crates/api_models/src/payments.rs
+++ b/crates/api_models/src/payments.rs
@@ -2118,6 +2118,7 @@ pub struct SepaAndBacsBillingDetails {
 #[serde(rename_all = "snake_case")]
 pub struct CryptoData {
     pub pay_currency: Option<String>,
+    pub network: Option<String>,
 }
 
 #[derive(Debug, Clone, Eq, PartialEq, serde::Deserialize, serde::Serialize, ToSchema)]
diff --git a/crates/hyperswitch_domain_models/src/payment_method_data.rs b/crates/hyperswitch_domain_models/src/payment_method_data.rs
index 7517918ed95..065290b6b2d 100644
--- a/crates/hyperswitch_domain_models/src/payment_method_data.rs
+++ b/crates/hyperswitch_domain_models/src/payment_method_data.rs
@@ -285,6 +285,7 @@ pub enum BankRedirectData {
 #[serde(rename_all = "snake_case")]
 pub struct CryptoData {
     pub pay_currency: Option<String>,
+    pub network: Option<String>,
 }
 
 #[derive(Debug, Clone, Eq, PartialEq, serde::Deserialize, serde::Serialize)]
@@ -693,8 +694,14 @@ impl From<api_models::payments::BankRedirectData> for BankRedirectData {
 
 impl From<api_models::payments::CryptoData> for CryptoData {
     fn from(value: api_models::payments::CryptoData) -> Self {
-        let api_models::payments::CryptoData { pay_currency } = value;
-        Self { pay_currency }
+        let api_models::payments::CryptoData {
+            pay_currency,
+            network,
+        } = value;
+        Self {
+            pay_currency,
+            network,
+        }
     }
 }
 
diff --git a/crates/router/src/configs/defaults.rs b/crates/router/src/configs/defaults.rs
index 0405f318071..a582a00ee19 100644
--- a/crates/router/src/configs/defaults.rs
+++ b/crates/router/src/configs/defaults.rs
@@ -8195,7 +8195,6 @@ impl Default for super::settings::RequiredFields {
                                                             "TRX".to_string(),
                                                             "DOGE".to_string(),
                                                             "BNB".to_string(),
-                                                            "BUSD".to_string(),
                                                             "USDT".to_string(),
                                                             "USDC".to_string(),
                                                             "DAI".to_string(),
@@ -8204,6 +8203,15 @@ impl Default for super::settings::RequiredFields {
                                                     value: None,
                                                 }
                                             ),
+                                            (
+                                                "payment_method_data.crypto.network".to_string(),
+                                                RequiredFieldInfo {
+                                                    required_field: "payment_method_data.crypto.network".to_string(),
+                                                    display_name: "network".to_string(),
+                                                    field_type: enums::FieldType::Text,
+                                                    value: None,
+                                                }
+                                            ),
                                         ]),
                                         common : HashMap::new(),
                                     }
diff --git a/crates/router/src/connector/cryptopay/transformers.rs b/crates/router/src/connector/cryptopay/transformers.rs
index 1a1f23b93bf..bcbc9a043a1 100644
--- a/crates/router/src/connector/cryptopay/transformers.rs
+++ b/crates/router/src/connector/cryptopay/transformers.rs
@@ -42,6 +42,8 @@ pub struct CryptopayPaymentsRequest {
     price_amount: String,
     price_currency: enums::Currency,
     pay_currency: String,
+    #[serde(skip_serializing_if = "Option::is_none")]
+    network: Option<String>,
     success_redirect_url: Option<String>,
     unsuccess_redirect_url: Option<String>,
     #[serde(skip_serializing_if = "Option::is_none")]
@@ -63,6 +65,7 @@ impl TryFrom<&CryptopayRouterData<&types::PaymentsAuthorizeRouterData>>
                     price_amount: item.amount.to_owned(),
                     price_currency: item.router_data.request.currency,
                     pay_currency,
+                    network: cryptodata.network.to_owned(),
                     success_redirect_url: item.router_data.request.router_return_url.clone(),
                     unsuccess_redirect_url: item.router_data.request.router_return_url.clone(),
                     //Cryptopay only accepts metadata as Object. If any other type, payment will fail with error.
diff --git a/crates/router/tests/connectors/bitpay.rs b/crates/router/tests/connectors/bitpay.rs
index 85026c9c447..69c6bfac61d 100644
--- a/crates/router/tests/connectors/bitpay.rs
+++ b/crates/router/tests/connectors/bitpay.rs
@@ -70,6 +70,7 @@ fn payment_method_details() -> Option<types::PaymentsAuthorizeData> {
         currency: enums::Currency::USD,
         payment_method_data: domain::PaymentMethodData::Crypto(domain::CryptoData {
             pay_currency: None,
+            network: None,
         }),
         confirm: true,
         statement_descriptor_suffix: None,
diff --git a/crates/router/tests/connectors/coinbase.rs b/crates/router/tests/connectors/coinbase.rs
index 306255c94c5..569b2222e8b 100644
--- a/crates/router/tests/connectors/coinbase.rs
+++ b/crates/router/tests/connectors/coinbase.rs
@@ -72,6 +72,7 @@ fn payment_method_details() -> Option<types::PaymentsAuthorizeData> {
         currency: enums::Currency::USD,
         payment_method_data: domain::PaymentMethodData::Crypto(domain::CryptoData {
             pay_currency: None,
+            network: None,
         }),
         confirm: true,
         statement_descriptor_suffix: None,
diff --git a/crates/router/tests/connectors/cryptopay.rs b/crates/router/tests/connectors/cryptopay.rs
index 6d52a174b58..20c727756e7 100644
--- a/crates/router/tests/connectors/cryptopay.rs
+++ b/crates/router/tests/connectors/cryptopay.rs
@@ -71,6 +71,7 @@ fn payment_method_details() -> Option<types::PaymentsAuthorizeData> {
         currency: enums::Currency::USD,
         payment_method_data: domain::PaymentMethodData::Crypto(domain::CryptoData {
             pay_currency: Some("XRP".to_string()),
+            network: None,
         }),
         confirm: true,
         statement_descriptor_suffix: None,
diff --git a/crates/router/tests/connectors/opennode.rs b/crates/router/tests/connectors/opennode.rs
index 91162b829e2..df54f0caf85 100644
--- a/crates/router/tests/connectors/opennode.rs
+++ b/crates/router/tests/connectors/opennode.rs
@@ -71,6 +71,7 @@ fn payment_method_details() -> Option<types::PaymentsAuthorizeData> {
         currency: enums::Currency::USD,
         payment_method_data: domain::PaymentMethodData::Crypto(domain::CryptoData {
             pay_currency: None,
+            network: None,
         }),
         confirm: true,
         statement_descriptor_suffix: None,
diff --git a/openapi/openapi_spec.json b/openapi/openapi_spec.json
index 30bd356cd45..2fb02edb149 100644
--- a/openapi/openapi_spec.json
+++ b/openapi/openapi_spec.json
@@ -7907,6 +7907,10 @@
           "pay_currency": {
             "type": "string",
             "nullable": true
+          },
+          "network": {
+            "type": "string",
+            "nullable": true
           }
         }
       },

## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD

## Description
<!-- Describe your changes in detail -->
The customer will be able to choose the supported network in case of doing cryptocurrency payments via Cryptopay.

The supported networks will be shown on SDK and the chosen network will be passed on to Cryptopay. If no network is chosen then Cryptopay will choose the default network for that transaction.

Also the currency `BUSD` is no longer supported by Cryptopay, hence it is being removed from list of supported crypto currencies.
Reference: https://developers.cryptopay.me/guides/currencies/currencies

### 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).
-->
https://github.com/juspay/hyperswitch/issues/4778

## 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)?
-->
Payments Request:
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: API_KEY_HERE' \
--data-raw '{
    "amount": 120,
    "currency": "USD",
    "confirm": true,
    "email": "guest@example.com",
    "return_url": "https://google.com",
    "payment_method": "crypto",
    "payment_method_type": "crypto_currency",
    "payment_experience": "redirect_to_url",
    "payment_method_data": {
        "crypto": {
            "pay_currency": "LTC",
            "network": "bnb_smart_chain"
        }
    }
}'
```

Payments Response:
```
{
    "payment_id": "pay_7v0mzPuohoNWvobOcUlV",
    "merchant_id": "merchant_1713942708",
    "status": "requires_customer_action",
    "amount": 120,
    "net_amount": 120,
    "amount_capturable": 120,
    "amount_received": 120,
    "connector": "cryptopay",
    "client_secret": "pay_7v0mzPuohoNWvobOcUlV_secret_QaYlaPPZ07arI9NStJNQ",
    "created": "2024-05-27T11:36:42.124Z",
    "currency": "USD",
    "customer_id": null,
    "customer": null,
    "description": null,
    "refunds": null,
    "disputes": null,
    "mandate_id": null,
    "mandate_data": null,
    "setup_future_usage": null,
    "off_session": null,
    "capture_on": null,
    "capture_method": null,
    "payment_method": "crypto",
    "payment_method_data": {
        "crypto": {},
        "billing": null
    },
    "payment_token": null,
    "shipping": null,
    "billing": null,
    "order_details": null,
    "email": null,
    "name": null,
    "phone": null,
    "return_url": "https://google.com/",
    "authentication_type": "no_three_ds",
    "statement_descriptor_name": null,
    "statement_descriptor_suffix": null,
    "next_action": {
        "type": "redirect_to_url",
        "redirect_to_url": "http://localhost:8080/payments/redirect/pay_7v0mzPuohoNWvobOcUlV/merchant_1713942708/pay_7v0mzPuohoNWvobOcUlV_1"
    },
    "cancellation_reason": null,
    "error_code": null,
    "error_message": null,
    "unified_code": null,
    "unified_message": null,
    "payment_experience": "redirect_to_url",
    "payment_method_type": "crypto_currency",
    "connector_label": null,
    "business_country": null,
    "business_label": "default",
    "business_sub_label": null,
    "allowed_payment_method_types": null,
    "ephemeral_key": null,
    "manual_retry_allowed": null,
    "connector_transaction_id": "25bf87e4-55bd-4dc7-a807-8998c95cb496",
    "frm_message": null,
    "metadata": null,
    "connector_metadata": null,
    "feature_metadata": null,
    "reference_id": "pay_7v0mzPuohoNWvobOcUlV_1",
    "payment_link": null,
    "profile_id": "pro_HgGSGQyaRys8iaDsi7OX",
    "surcharge_details": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": "mca_z8isFAS0iNcgES4VN5Lm",
    "incremental_authorization_allowed": null,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2024-05-27T11:51:42.124Z",
    "fingerprint": null,
    "browser_info": null,
    "payment_method_id": null,
    "payment_method_status": null,
    "updated": "2024-05-27T11:36:42.715Z",
    "charges": null,
    "frm_metadata": null
}
```

List payment methods for a Merchant Request:
```
curl --location 'http://localhost:8080/account/payment_methods?client_secret=pay_BUUFr1ZME4rkMHDeGapK_secret_WhDFJZOH4FBIU9p4Xbzp' \
--header 'Accept: application/json' \
--header 'api-key: API_KEY_HERE'
```

List payment methods for a Merchant Response:
```
{
    "redirect_url": "https://google.com/success",
    "currency": "USD",
    "payment_methods": [
        {
            "payment_method": "crypto",
            "payment_method_types": [
                {
                    "payment_method_type": "crypto_currency",
                    "payment_experience": [
                        {
                            "payment_experience_type": "redirect_to_url",
                            "eligible_connectors": [
                                "cryptopay"
                            ]
                        }
                    ],
                    "card_networks": null,
                    "bank_names": null,
                    "bank_debits": null,
                    "bank_transfers": null,
                    "required_fields": {
                        "payment_method_data.crypto.pay_currency": {
                            "required_field": "payment_method_data.crypto.pay_currency",
                            "display_name": "currency",
                            "field_type": {
                                "user_currency": {
                                    "options": [
                                        "BTC",
                                        "LTC",
                                        "ETH",
                                        "XRP",
                                        "XLM",
                                        "BCH",
                                        "ADA",
                                        "SOL",
                                        "SHIB",
                                        "TRX",
                                        "DOGE",
                                        "BNB",
                                        "USDT",
                                        "USDC",
                                        "DAI"
                                    ]
                                }
                            },
                            "value": null
                        },
                        "payment_method_data.crypto.network": {
                            "required_field": "payment_method_data.crypto.network",
                            "display_name": "network",
                            "field_type": "text",
                            "value": null
                        }
                    },
                    "surcharge_details": null,
                    "pm_auth_connector": null
                }
            ]
        }
    ],
    "mandate_payment": null,
    "merchant_name": "NewAge Retailer",
    "show_surcharge_breakup_screen": false,
    "payment_type": "normal"
}
```

## 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
