From bf71acfe2d16516c704b267550c214be49aadcec Mon Sep 17 00:00:00 2001 From: = Date: Sun, 4 Apr 2021 22:47:59 +1000 Subject: [PATCH] Fixes for tests --- app/Services/Subscription/SubscriptionService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/Subscription/SubscriptionService.php b/app/Services/Subscription/SubscriptionService.php index e101c4fbcf58..8f8b91312c01 100644 --- a/app/Services/Subscription/SubscriptionService.php +++ b/app/Services/Subscription/SubscriptionService.php @@ -236,7 +236,7 @@ class SubscriptionService ]; $body = array_merge($body, $context); - + if(Ninja::isHosted()) { $hosted = [ @@ -251,7 +251,7 @@ class SubscriptionService 'headers' => $this->subscription->webhook_configuration['post_purchase_headers'] ]); - $response = $client->{$this->subscription->webhook_configuration['post_purchase_rest_method']($this->subscription['post_purchase_url'],[ + $response = $client->{$this->subscription->webhook_configuration['post_purchase_rest_method']}($this->subscription['post_purchase_url'],[ RequestOptions::JSON => ['body' => $body] ]);