From 372ec488bca765cee5adee73017bd0e03f9649a3 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 14 Aug 2022 08:57:59 +1000 Subject: [PATCH] Paytrace cleanup --- app/PaymentDrivers/PayTrace/CreditCard.php | 31 ---------------------- 1 file changed, 31 deletions(-) diff --git a/app/PaymentDrivers/PayTrace/CreditCard.php b/app/PaymentDrivers/PayTrace/CreditCard.php index 7b5797990f..b80f3f03ca 100644 --- a/app/PaymentDrivers/PayTrace/CreditCard.php +++ b/app/PaymentDrivers/PayTrace/CreditCard.php @@ -47,14 +47,6 @@ class CreditCard return render('gateways.paytrace.authorize', $data); } - // +"success": true - // +"response_code": 160 - // +"status_message": "The customer profile for PLS5U60OoLUfQXzcmtJYNefPA0gTthzT/11 was successfully created." - // +"customer_id": "PLS5U60OoLUfQXzcmtJYNefPA0gTthzT" - - //if(!$response->success) - //handle failure - public function authorizeResponse($request) { $data = $request->all(); @@ -64,27 +56,6 @@ class CreditCard return redirect()->route('client.payment_methods.index'); } - // "_token" => "Vl1xHflBYQt9YFSaNCPTJKlY5x3rwcFE9kvkw71I" - // "company_gateway_id" => "1" - // "HPF_Token" => "e484a92c-90ed-4468-ac4d-da66824c75de" - // "enc_key" => "zqz6HMHCXALWdX5hyBqrIbSwU7TBZ0FTjjLB3Cp0FQY=" - // "amount" => "Amount" - // "q" => "/client/payment_methods" - // "method" => "1" - // ] - - // "customer_id":"customer789", - // "hpf_token":"e369847e-3027-4174-9161-fa0d4e98d318", - // "enc_key":"lI785yOBMet4Rt9o4NLXEyV84WBU3tdStExcsfoaOoo=", - // "integrator_id":"xxxxxxxxxx", - // "billing_address":{ - // "name":"Mark Smith", - // "street_address":"8320 E. West St.", - // "city":"Spokane", - // "state":"WA", - // "zip":"85284" - // } - private function createCustomer($data) { $post_data = [ @@ -193,8 +164,6 @@ class CreditCard 'invoice_id' => $this->harvestInvoiceId(), ]; -nlog($data); - $response = $this->paytrace->gatewayRequest('/v1/transactions/sale/pt_protect', $data); if ($response->success) {