Working on pro plan;

This commit is contained in:
David Bomba 2021-04-07 08:56:36 +10:00
parent 23206d7a67
commit 73e7aadaad
2 changed files with 9 additions and 4 deletions

View File

@ -18,11 +18,14 @@ class MailServiceProvider extends MailProvider
protected function registerIlluminateMailer()
{
$this->app->singleton('mail.manager', function($app) {
// $this->app->singleton('mail.manager', function($app) {
// return new GmailTransportManager($app);
// });
$this->app->bind('mail.manager', function($app) {
return new GmailTransportManager($app);
});
$this->app->bind('mailer', function ($app) {
return $app->make('mail.manager')->mailer();
});

View File

@ -82,7 +82,9 @@ class SubscriptionService
'subscription' => $this->subscription->hashed_id,
];
$this->triggerWebhook($context);
$response = $this->triggerWebhook($context);
nlog($response);
if(array_key_exists('post_purchase_url', $this->subscription->webhook_configuration) && strlen($this->subscription->webhook_configuration['post_purchase_url']) >=1)
return redirect($this->subscription->webhook_configuration['post_purchase_url']);