Updates for subscriptions

This commit is contained in:
David Bomba 2024-04-14 09:11:25 +10:00
parent 6e6cfe5081
commit c80ec85c61

View File

@ -26,7 +26,9 @@ trait SubscriptionHooker
'X-Requested-With' => 'XMLHttpRequest', 'X-Requested-With' => 'XMLHttpRequest',
]; ];
if (!isset($subscription->webhook_configuration['post_purchase_url']) && !isset($subscription->webhook_configuration['post_purchase_rest_method'])) { $post_purchase_rest_method = &$subscription->webhook_configuration['post_purchase_rest_method'];
if (!isset($subscription->webhook_configuration['post_purchase_url']) && !$post_purchase_rest_method) {
return []; return [];
} }