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:
Swangi Kumari
2024-07-09 20:04:20 +05:30
committed by GitHub
parent d9c7849dfa
commit fdac313241
30 changed files with 2644 additions and 6 deletions

View File

@ -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(