fix(payment): align plate-follow cash preview with wallet balance

Use cash wallet for plate follow cashiers and stop stubbing methods when Gateway is missing.
This commit is contained in:
kate522 committed 2026-07-25 13:13:56 +08:00
1 parent 6db4da32c6
commit daba099755
2 files changed
+9 -11

No files matched your search

+2 -3
View File
@@ -86,9 +86,8 @@ if (!function_exists('aksrt_list_cash_payment_methods')) {
: ['alipay', 'wechatpay', 'paypal', 'stripe'];
if (!class_exists('\AKSRT\Payment\Gateway')) {
return $logged_in
? [['id' => 'balance', 'name' => __('站内余额', 'aksrt')]]
: [['id' => 'alipay', 'name' => __('支付宝', 'aksrt')]];
// No gateway manager → no real methods (avoid dead balance/alipay stubs).
return [];
}
$methods = [];