Fixes for WePay ACH

This commit is contained in:
David Bomba 2021-06-25 08:38:15 +10:00
parent 0c9de66a80
commit ec028ccf69
3 changed files with 8 additions and 3 deletions

View File

@ -77,7 +77,7 @@ class Handler extends ExceptionHandler
return;
}
if(Ninja::isHosted()){
if(Ninja::isHosted() && !($exception instanceof ValidationException)){
app('sentry')->configureScope(function (Scope $scope): void {

View File

@ -189,7 +189,7 @@ class ACH
public function paymentResponse($request)
{
nlog($request->all());
// nlog($request->all());
$token = ClientGatewayToken::find($this->decodePrimaryKey($request->input('source')));
$token_meta = $token->meta;

View File

@ -24,8 +24,13 @@ trait WePayCommon
private function processSuccessfulPayment($response, $payment_status, $gateway_type)
{
if($gateway_type == GatewayType::BANK_TRANSFER)
$payment_type = PaymentType::ACH;
else
$payment_type = PaymentType::CREDIT_CARD_OTHER;
$data = [
'payment_type' => PaymentType::CREDIT_CARD_OTHER,
'payment_type' => $payment_type,
'amount' => $response->amount,
'transaction_reference' => $response->checkout_id,
'gateway_type_id' => $gateway_type,