Try/catch for apple pay domain
This commit is contained in:
parent
a30941bdb8
commit
2f34411b5f
1 changed files with 7 additions and 1 deletions
|
|
@ -55,9 +55,15 @@ class ApplePayDomain implements ShouldQueue
|
|||
|
||||
if(in_array($this->company_gateway->gateway_key, $this->stripe_keys))
|
||||
{
|
||||
|
||||
$domain = $this->getDomain();
|
||||
|
||||
$this->company_gateway->driver()->setApplePayDomain($domain);
|
||||
try{
|
||||
$this->company_gateway->driver()->setApplePayDomain($domain);
|
||||
}
|
||||
catch(\Exception $e){
|
||||
nlog("failed to set Apple Domain with Stripe " . $e->getMessage());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue