mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 10:17:30 -04:00
Paytrace cleanup
This commit is contained in:
parent
962ea9cc69
commit
603fa858e1
@ -156,7 +156,6 @@ class CreditCard
|
|||||||
'zip' => $this->paytrace->client->postal_code,
|
'zip' => $this->paytrace->client->postal_code,
|
||||||
];
|
];
|
||||||
|
|
||||||
nlog($data);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function paymentView($data)
|
public function paymentView($data)
|
||||||
|
@ -89,15 +89,11 @@ class PaytracePaymentDriver extends BaseDriver
|
|||||||
|
|
||||||
public function refund(Payment $payment, $amount, $return_client_response = false)
|
public function refund(Payment $payment, $amount, $return_client_response = false)
|
||||||
{
|
{
|
||||||
// $cgt = ClientGatewayToken::where('company_gateway_id', $payment->company_gateway_id)
|
|
||||||
// ->where('gateway_type_id', $payment->gateway_type_id)
|
|
||||||
// ->first();
|
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'amount' => $amount,
|
'amount' => $amount,
|
||||||
//'customer_id' => $cgt->token,
|
|
||||||
'transaction_id' => $payment->transaction_reference,
|
'transaction_id' => $payment->transaction_reference,
|
||||||
'integrator_id' => '959195xd1CuC',
|
'integrator_id' => $this->company_gateway->getConfigField('integratorId'),
|
||||||
];
|
];
|
||||||
|
|
||||||
$response = $this->gatewayRequest('/v1/transactions/refund/for_transaction', $data);
|
$response = $this->gatewayRequest('/v1/transactions/refund/for_transaction', $data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user