Paytrace cleanup

This commit is contained in:
David Bomba 2022-08-09 07:39:38 +10:00
parent 962ea9cc69
commit 603fa858e1
2 changed files with 1 additions and 6 deletions

View File

@ -156,7 +156,6 @@ class CreditCard
'zip' => $this->paytrace->client->postal_code,
];
nlog($data);
}
public function paymentView($data)

View File

@ -89,15 +89,11 @@ class PaytracePaymentDriver extends BaseDriver
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 = [
'amount' => $amount,
//'customer_id' => $cgt->token,
'transaction_id' => $payment->transaction_reference,
'integrator_id' => '959195xd1CuC',
'integrator_id' => $this->company_gateway->getConfigField('integratorId'),
];
$response = $this->gatewayRequest('/v1/transactions/refund/for_transaction', $data);