Stripe Apple Pay
This commit is contained in:
parent
2f34411b5f
commit
37a4c4810d
3 changed files with 6 additions and 2 deletions
|
|
@ -210,6 +210,8 @@ class CompanyGatewayController extends BaseController
|
|||
$company_gateway->save();
|
||||
}
|
||||
|
||||
ApplePayDomain::dispatch($company_gateway, $company_gateway->company->db);
|
||||
|
||||
return $this->itemResponse($company_gateway);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue