feat(pay): VIP package purchase service and user-center open flow

Add AKSRT_Vip_Service (GET/POST /pay/vip), activate aksrt_vip_level/expires on
order paid, package UI in credits panel, and deep-link VIP CTA to credits tab.
This commit is contained in:
kate522 committed 2026-07-14 18:16:15 +08:00
1 parent 8e9e05c859
commit d0b8f7805f
10 files changed
+957 -24

No files matched your search

+3 -1
View File
@@ -958,7 +958,9 @@ if (!function_exists('aksrt_get_paywall_html')) {
$has_original = $original_price > 0 && $original_price > $price;
$pay_limit = (int) ($meta['pay_limit'] ?? 0);
$member_blocked = $pay_limit > 0 && $vip_level < $pay_limit;
$vip_url = function_exists('aksrt_get_user_center_url') ? aksrt_get_user_center_url() : home_url('/');
$vip_url = function_exists('aksrt_get_user_center_tab_url')
? aksrt_get_user_center_tab_url('credits')
: (function_exists('aksrt_get_user_center_url') ? aksrt_get_user_center_url() : home_url('/'));
ob_start();
?>