mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Fixes for WePay ACH
This commit is contained in:
parent
0c9de66a80
commit
ec028ccf69
@ -77,7 +77,7 @@ class Handler extends ExceptionHandler
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Ninja::isHosted()){
|
if(Ninja::isHosted() && !($exception instanceof ValidationException)){
|
||||||
|
|
||||||
app('sentry')->configureScope(function (Scope $scope): void {
|
app('sentry')->configureScope(function (Scope $scope): void {
|
||||||
|
|
||||||
|
@ -189,7 +189,7 @@ class ACH
|
|||||||
|
|
||||||
public function paymentResponse($request)
|
public function paymentResponse($request)
|
||||||
{
|
{
|
||||||
nlog($request->all());
|
// nlog($request->all());
|
||||||
|
|
||||||
$token = ClientGatewayToken::find($this->decodePrimaryKey($request->input('source')));
|
$token = ClientGatewayToken::find($this->decodePrimaryKey($request->input('source')));
|
||||||
$token_meta = $token->meta;
|
$token_meta = $token->meta;
|
||||||
|
@ -24,8 +24,13 @@ trait WePayCommon
|
|||||||
private function processSuccessfulPayment($response, $payment_status, $gateway_type)
|
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 = [
|
$data = [
|
||||||
'payment_type' => PaymentType::CREDIT_CARD_OTHER,
|
'payment_type' => $payment_type,
|
||||||
'amount' => $response->amount,
|
'amount' => $response->amount,
|
||||||
'transaction_reference' => $response->checkout_id,
|
'transaction_reference' => $response->checkout_id,
|
||||||
'gateway_type_id' => $gateway_type,
|
'gateway_type_id' => $gateway_type,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user