Fixes for tests

This commit is contained in:
= 2021-04-04 22:47:59 +10:00
parent 858c99e09d
commit bf71acfe2d

View File

@ -236,7 +236,7 @@ class SubscriptionService
]; ];
$body = array_merge($body, $context); $body = array_merge($body, $context);
if(Ninja::isHosted()) if(Ninja::isHosted())
{ {
$hosted = [ $hosted = [
@ -251,7 +251,7 @@ class SubscriptionService
'headers' => $this->subscription->webhook_configuration['post_purchase_headers'] '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] RequestOptions::JSON => ['body' => $body]
]); ]);