feat(pay): guest cash purchase with signed cookie unlock (zibll-style)

Allow pay_no_logged_in cash content orders (user_id=0), set aksrt_pay_* cookies
on paid, accept cookie in access state, and expose guest CTA on paywall/box.
This commit is contained in:
2026-07-14 12:19:22 +08:00
parent 8f15d16d35
commit 8e9e05c859
6 changed files with 301 additions and 35 deletions
@@ -100,6 +100,10 @@ class AKSRT_Content_Visibility {
(int) $resource_post->ID
);
}
// Guest cookie paid unlock (Zibll pay_no_logged_in).
if (!$has_paid_order && $uid <= 0 && function_exists('aksrt_guest_has_paid_access')) {
$has_paid_order = aksrt_guest_has_paid_access((int) $resource_post->ID);
}
$has_vip_access = false;
$user_vip_level = is_array($priced) ? (int) ($priced['vip_level'] ?? 0) : 0;