mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-01 08:28:34 +00:00
feat: add custom easypay payment methods
This commit is contained in:
@@ -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),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user