mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
fix: validate refund amount with amount_captured instead of amount (#3120)
This commit is contained in:
@ -33,7 +33,7 @@ pub enum StripeErrorCode {
|
||||
expected_format: String,
|
||||
},
|
||||
|
||||
#[error(error_type = StripeErrorType::InvalidRequestError, code = "IR_06", message = "Refund amount exceeds the payment amount.")]
|
||||
#[error(error_type = StripeErrorType::InvalidRequestError, code = "IR_06", message = "The refund amount exceeds the amount captured.")]
|
||||
RefundAmountExceedsPaymentAmount { param: String },
|
||||
|
||||
#[error(error_type = StripeErrorType::ApiError, code = "payment_intent_authentication_failure", message = "Payment failed while processing with connector. Retry payment.")]
|
||||
|
||||
Reference in New Issue
Block a user