Skip to content

Commit

Permalink
chore: remove default from payment_method match
Browse files Browse the repository at this point in the history
  • Loading branch information
SamraatBansal committed Nov 20, 2023
1 parent 1534c0e commit 55733ae
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions crates/router/src/connector/cybersource/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,22 @@ impl TryFrom<&CybersourceRouterData<&types::PaymentsAuthorizeRouterData>>
instrument_identifier,
}
}
_ => Err(errors::ConnectorError::NotImplemented(
utils::get_unimplemented_payment_method_error_message("Cybersource"),
))?,
payments::PaymentMethodData::CardRedirect(_)
| payments::PaymentMethodData::Wallet(_)
| payments::PaymentMethodData::PayLater(_)
| payments::PaymentMethodData::BankRedirect(_)
| payments::PaymentMethodData::BankDebit(_)
| payments::PaymentMethodData::BankTransfer(_)
| payments::PaymentMethodData::Crypto(_)
| payments::PaymentMethodData::MandatePayment
| payments::PaymentMethodData::Reward
| payments::PaymentMethodData::Upi(_)
| payments::PaymentMethodData::Voucher(_)
| payments::PaymentMethodData::GiftCard(_) => {
Err(errors::ConnectorError::NotImplemented(
utils::get_unimplemented_payment_method_error_message("Cybersource"),
))?
}
};
Ok(Self {
processing_information,
Expand Down

0 comments on commit 55733ae

Please sign in to comment.