mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 16:31:33 +02:00
Bug fixed.
This commit is contained in:
parent
b935b82a8b
commit
7be910ea69
@ -12,12 +12,13 @@
|
||||
|
||||
namespace App\PaymentDrivers\Forte;
|
||||
|
||||
use App\Models\Payment;
|
||||
use App\Models\GatewayType;
|
||||
use App\Models\PaymentType;
|
||||
use App\Http\Requests\Request;
|
||||
use App\Utils\Traits\MakesHash;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
use App\PaymentDrivers\FortePaymentDriver;
|
||||
use App\Models\Payment;
|
||||
|
||||
class ACH
|
||||
{
|
||||
@ -229,7 +230,7 @@ class ACH
|
||||
|
||||
$data['gateway_type_id']=GatewayType::CREDIT_CARD;
|
||||
$data['amount']=$request->system_amount_with_fee;
|
||||
$data['payment_type']=GatewayType::CREDIT_CARD;
|
||||
$data['payment_type']=PaymentType::ACH;
|
||||
$data['transaction_reference']=$response->transaction_id;
|
||||
|
||||
$payment=$this->forte->createPayment($data, Payment::STATUS_COMPLETED);
|
||||
|
@ -14,6 +14,7 @@ namespace App\PaymentDrivers\Forte;
|
||||
|
||||
use App\Models\Payment;
|
||||
use App\Models\GatewayType;
|
||||
use App\Models\PaymentType;
|
||||
use App\Utils\Traits\MakesHash;
|
||||
use Illuminate\Support\Facades\Session;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
@ -231,7 +232,7 @@ class CreditCard
|
||||
|
||||
$data['gateway_type_id']=GatewayType::CREDIT_CARD;
|
||||
$data['amount']=$request->system_amount_with_fee;
|
||||
$data['payment_type']=GatewayType::CREDIT_CARD;
|
||||
$data['payment_type']=PaymentType::parseCardType(strtolower($request->card_brand)) ?: PaymentType::CREDIT_CARD_OTHER;
|
||||
$data['transaction_reference']=$response->transaction_id;
|
||||
|
||||
$payment=$this->forte->createPayment($data, Payment::STATUS_COMPLETED);
|
||||
|
@ -37,6 +37,7 @@
|
||||
@if(count($tokens) > 0)
|
||||
@foreach($tokens as $token)
|
||||
<label class="mr-4">
|
||||
<input type="hidden" name="card_brand" value="{{optional($token->meta)->brand}}">
|
||||
<input
|
||||
type="radio"
|
||||
data-token="{{ $token->hashed_id }}"
|
||||
|
Loading…
Reference in New Issue
Block a user