Create Ninja User on hosted platform

This commit is contained in:
David Bomba 2021-06-09 12:24:32 +10:00
parent bf2d3284b0
commit a753d6ca5a
3 changed files with 3 additions and 3 deletions

View File

@ -212,7 +212,7 @@ class Import implements ShouldQueue
}
// if(Ninja::isHosted() && array_key_exists('ninja_tokens', $data))
// $this->processNinjaTokens($data['ninja_tokens']);
$this->processNinjaTokens($data['ninja_tokens']);
$this->setInitialCompanyLedgerBalances();

View File

@ -98,7 +98,7 @@ class PayPalExpressPaymentDriver extends BaseDriver
$message = [
'server_response' => $response->getMessage(),
'data' => $this->checkout->payment_hash->data,
'data' => $this->payment_hash->data,
];
SystemLogger::dispatch(

View File

@ -630,7 +630,7 @@ class SubscriptionService
*/
public function triggerWebhook($context)
{
if (empty($this->subscription->webhook_configuration['post_purchase_url']) || empty($this->subscription->webhook_configuration['post_purchase_rest_method'])) {
if (empty($this->subscription->webhook_configuration['post_purchase_url']) || is_null($this->subscription->webhook_configuration['post_purchase_url']) || strlen($this->subscription->webhook_configuration['post_purchase_url']) < 1) {
return ["message" => "Success", "status_code" => 200];
}