mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for paytrace
This commit is contained in:
parent
b7c248eec5
commit
bb2c29dbc3
@ -157,14 +157,16 @@ class CreditCard
|
|||||||
{
|
{
|
||||||
$response_array = $request->all();
|
$response_array = $request->all();
|
||||||
|
|
||||||
if($request->token)
|
if($request->token){
|
||||||
$this->processTokenPayment($request->token, $request);
|
$token = ClientGatewayToken::find($this->decodePrimaryKey($request->token));
|
||||||
|
return $this->processTokenPayment($token->token, $request);
|
||||||
|
}
|
||||||
|
|
||||||
if ($request->has('store_card') && $request->input('store_card') === true) {
|
if ($request->has('store_card') && $request->input('store_card') === true) {
|
||||||
|
|
||||||
$response = $this->createCustomer($request->all());
|
$response = $this->createCustomer($request->all());
|
||||||
|
|
||||||
$this->processTokenPayment($response->customer_id, $request);
|
return $this->processTokenPayment($response->customer_id, $request);
|
||||||
}
|
}
|
||||||
|
|
||||||
//process a regular charge here:
|
//process a regular charge here:
|
||||||
@ -190,8 +192,8 @@ class CreditCard
|
|||||||
{
|
{
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'customer_id' => $request->token,
|
'customer_id' => $token,
|
||||||
'integrator_id' => $this->company_gateway->getConfigField('integratorId'),
|
'integrator_id' => $this->paytrace->company_gateway->getConfigField('integratorId'),
|
||||||
'amount' => $request->input('amount_with_fee'),
|
'amount' => $request->input('amount_with_fee'),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user