mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
feat(connector): [RazorPay] Add new connector and Implement payment flows for UPI payment method (#5200)
Co-authored-by: AkshayaFoiger <akshaya.shankar@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -23,9 +23,10 @@ pub fn validate_config(input: syn::DeriveInput) -> Result<proc_macro2::TokenStre
|
||||
|
||||
let field_ident_string = field_ident.to_string();
|
||||
let is_optional_field = field_type_ident.eq("Option");
|
||||
let is_secret_field = field_type_ident.eq("Secret");
|
||||
|
||||
// Do not call validate if it is an optional field
|
||||
if !is_optional_field {
|
||||
if !is_optional_field && !is_secret_field {
|
||||
let is_leaf_field = field_type_ident.eq("String");
|
||||
let validate_expansion = if is_leaf_field {
|
||||
quote::quote!(common_utils::fp_utils::when(
|
||||
|
||||
Reference in New Issue
Block a user