Merge pull request #9458 from turbo124/v5-develop

Updates for subscriptions
This commit is contained in:
David Bomba 2024-04-14 09:13:12 +10:00 committed by GitHub
commit bbff8d2914
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 [];
} }