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

+5 -3
View File
@@ -306,9 +306,11 @@ class AKSRT_Content_Pay {
$base_label = $this->format_amount_label($base, $pay_modo, $currency);
$over_label = $over_price > 0 ? $this->format_amount_label($over_price, $pay_modo, $currency) : '';
$vip_page = function_exists('aksrt_get_user_center_url')
? aksrt_get_user_center_url()
: home_url('/');
$vip_page = 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('/'));
$free_limit = $uid > 0 && function_exists('aksrt_get_user_free_download_limit')
? aksrt_get_user_free_download_limit($uid) : 0;