v0.10.302 #2

Merged
didirus merged 289 commits from feature-clean into beta 2025-07-08 15:00:09 +00:00
Showing only changes of commit b66d99c59c - Show all commits

View File

@@ -193,9 +193,12 @@ impl PayoutsQueue {
pub error_description: String,
}
if let Ok(error) =
if let Ok(mut error) =
serde_json::from_value::<PayPalError>(value.clone())
{
if error.name == "INSUFFICIENT_FUNDS" {
error.message = "We're currently transferring funds to our PayPal account. Please try again in a couple days.".to_string();
}
return Err(ApiError::Payments(format!(
"error name: {}, message: {}",
error.name, error.message