Fixes for paytrace:

This commit is contained in:
David Bomba 2022-08-12 09:23:52 +10:00
parent 9eb9f8b00d
commit b35cb2be35

View File

@ -156,6 +156,7 @@ class CreditCard
'zip' => $this->paytrace->client->postal_code, 'zip' => $this->paytrace->client->postal_code,
]; ];
return $data;
} }
public function paymentView($data) public function paymentView($data)
@ -192,6 +193,8 @@ class CreditCard
'invoice_id' => $this->harvestInvoiceId(), 'invoice_id' => $this->harvestInvoiceId(),
]; ];
nlog($data);
$response = $this->paytrace->gatewayRequest('/v1/transactions/sale/pt_protect', $data); $response = $this->paytrace->gatewayRequest('/v1/transactions/sale/pt_protect', $data);
if ($response->success) { if ($response->success) {