mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 17:44:32 -04:00
Change thrown exception when adding payment method - auth.net
This commit is contained in:
parent
67e2d692ed
commit
61ea7e3897
@ -13,6 +13,7 @@
|
|||||||
namespace App\PaymentDrivers\Authorize;
|
namespace App\PaymentDrivers\Authorize;
|
||||||
|
|
||||||
use App\Exceptions\GenericPaymentDriverFailure;
|
use App\Exceptions\GenericPaymentDriverFailure;
|
||||||
|
use App\Exceptions\PaymentFailed;
|
||||||
use App\Models\GatewayType;
|
use App\Models\GatewayType;
|
||||||
use App\PaymentDrivers\AuthorizePaymentDriver;
|
use App\PaymentDrivers\AuthorizePaymentDriver;
|
||||||
use net\authorize\api\contract\v1\CreateCustomerPaymentProfileRequest;
|
use net\authorize\api\contract\v1\CreateCustomerPaymentProfileRequest;
|
||||||
@ -211,7 +212,8 @@ class AuthorizePaymentMethod
|
|||||||
$message = $errorMessages[0]->getCode().' '.$errorMessages[0]->getText();
|
$message = $errorMessages[0]->getCode().' '.$errorMessages[0]->getText();
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new GenericPaymentDriverFailure($message);
|
throw new PaymentFailed($message, 500);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user