Skip to content

Commit

Permalink
Updates for subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
turbo124 committed Apr 13, 2024
1 parent 6e6cfe5 commit c80ec85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Utils/Traits/SubscriptionHooker.php
Original file line number Diff line number Diff line change
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 c80ec85

Please sign in to comment.