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 6fa1369c49 - Show all commits
@@ -1020,6 +1020,7 @@ fn infer_currency_code(country: &str) -> String {
"BE" => "EUR", "BE" => "EUR",
"CY" => "EUR", "CY" => "EUR",
"EE" => "EUR", "EE" => "EUR",
"ES" => "EUR",
"FI" => "EUR", "FI" => "EUR",
"FR" => "EUR", "FR" => "EUR",
"DE" => "EUR", "DE" => "EUR",
@@ -1066,6 +1067,7 @@ fn infer_currency_code(country: &str) -> String {
"TW" => "TWD", "TW" => "TWD",
"SA" => "SAR", "SA" => "SAR",
"QA" => "QAR", "QA" => "QAR",
"SG" => "SGD",
_ => "USD", _ => "USD",
} }
.to_string() .to_string()
@@ -1302,6 +1304,12 @@ pub async fn initiate_payment(
amount: Some(price), amount: Some(price),
currency: Some(stripe_currency), currency: Some(stripe_currency),
customer: Some(customer), customer: Some(customer),
metadata: interval.map(|interval| {
HashMap::from([(
"modrinth_subscription_interval".to_string(),
interval.as_str().to_string(),
)])
}),
..Default::default() ..Default::default()
}; };