feat: add custom easypay payment methods

This commit is contained in:
Albert Coady
2026-07-06 15:00:29 +08:00
parent 2854ab2ace
commit bf76168ba5
22 changed files with 779 additions and 22 deletions
+2
View File
@@ -603,6 +603,7 @@ const methodOptions = computed<PaymentMethodOption[]>(() =>
const ml = visibleMethods.value[type]
return {
type,
display_name: ml?.display_name,
fee_rate: ml?.fee_rate ?? 0,
available: ml?.available !== false && amountFitsMethod(validAmount.value, type),
}
@@ -672,6 +673,7 @@ const subMethodOptions = computed<PaymentMethodOption[]>(() => {
const currency = normalizePaymentCurrency(ml?.currency)
return {
type,
display_name: ml?.display_name,
fee_rate: ml?.fee_rate ?? 0,
available: ml?.available !== false && amountFitsMethod(subscriptionTotalAmountForCurrency(price, currency), type),
}