mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Working on pro plan;
This commit is contained in:
parent
23206d7a67
commit
73e7aadaad
@ -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();
|
||||
});
|
||||
|
@ -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']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user