mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
refactor(connector): [Iatapay] remove default case handling (#2587)
Co-authored-by: Prasunna Soppa <70575890+prasunna09@users.noreply.github.com>
This commit is contained in:
@ -86,7 +86,18 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for IatapayPaymentsRequest {
|
||||
let payment_method = item.payment_method;
|
||||
let country = match payment_method {
|
||||
PaymentMethod::Upi => "IN".to_string(),
|
||||
_ => item.get_billing_country()?.to_string(),
|
||||
|
||||
PaymentMethod::Card
|
||||
| PaymentMethod::CardRedirect
|
||||
| PaymentMethod::PayLater
|
||||
| PaymentMethod::Wallet
|
||||
| PaymentMethod::BankRedirect
|
||||
| PaymentMethod::BankTransfer
|
||||
| PaymentMethod::Crypto
|
||||
| PaymentMethod::BankDebit
|
||||
| PaymentMethod::Reward
|
||||
| PaymentMethod::Voucher
|
||||
| PaymentMethod::GiftCard => item.get_billing_country()?.to_string(),
|
||||
};
|
||||
let return_url = item.get_return_url()?;
|
||||
let payer_info = match item.request.payment_method_data.clone() {
|
||||
|
||||
Reference in New Issue
Block a user