Stripe Apple Pay

This commit is contained in:
David Bomba 2022-01-06 11:52:24 +11:00
parent 2f34411b5f
commit 37a4c4810d
3 changed files with 6 additions and 2 deletions

View File

@ -210,6 +210,8 @@ class CompanyGatewayController extends BaseController
$company_gateway->save();
}
ApplePayDomain::dispatch($company_gateway, $company_gateway->company->db);
return $this->itemResponse($company_gateway);
}

View File

@ -51,6 +51,7 @@ class ApplePayDomain implements ShouldQueue
*/
public function handle()
{
MultiDB::setDB($this->db);
if(in_array($this->company_gateway->gateway_key, $this->stripe_keys))

View File

@ -333,9 +333,10 @@ class InvoiceService
try{
Storage::disk(config('filesystems.default'))->delete($this->invoice->client->invoice_filepath($invitation) . $this->invoice->numberFormatter().'.pdf');
if(Storage::disk(config('filesystems.default'))->exists($this->invoice->client->invoice_filepath($invitation) . $this->invoice->numberFormatter().'.pdf'))
Storage::disk(config('filesystems.default'))->delete($this->invoice->client->invoice_filepath($invitation) . $this->invoice->numberFormatter().'.pdf');
if(Ninja::isHosted()) {
if(Ninja::isHosted() && Storage::disk(config('filesystems.default'))->exists($this->invoice->client->invoice_filepath($invitation) . $this->invoice->numberFormatter().'.pdf')) {
Storage::disk('public')->delete($this->invoice->client->invoice_filepath($invitation) . $this->invoice->numberFormatter().'.pdf');
}