Skip to content

Commit

Permalink
Merge pull request #9458 from turbo124/v5-develop
Browse files Browse the repository at this point in the history
Updates for subscriptions
  • Loading branch information
turbo124 committed Apr 13, 2024
2 parents 6e6cfe5 + c80ec85 commit bbff8d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Utils/Traits/SubscriptionHooker.php
Expand Up @@ -26,7 +26,9 @@ public function sendLoad($subscription, $body)
'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 [];
}

Expand Down

0 comments on commit bbff8d2

Please sign in to comment.