ACH with livewrie

This commit is contained in:
David Bomba 2025-05-14 15:06:47 +10:00
parent 441349bc70
commit 0a13a4d32e
1 changed files with 36 additions and 11 deletions

View File

@ -45,17 +45,23 @@ class AuthorizeACH implements LivewireMethodInterface
} }
/**
* livewirePaymentView
*
* @param array $data
* @return string
*/
public function livewirePaymentView(array $data): string public function livewirePaymentView(array $data): string
{ {
// $data['gateway'] = $this->authorize;
// $data['public_client_id'] = $this->authorize->init()->getPublicClientKey();
// $data['api_login_id'] = $this->authorize->company_gateway->getConfigField('apiLoginId');
// return render('gateways.authorize.ach.authorize', $data);
return 'gateways.authorize.ach.pay_livewire'; return 'gateways.authorize.ach.pay_livewire';
} }
/**
* paymentData
*
* @param array $data
* @return array
*/
public function paymentData(array $data): array public function paymentData(array $data): array
{ {
@ -74,6 +80,12 @@ class AuthorizeACH implements LivewireMethodInterface
return $data; return $data;
} }
/**
* processPaymentView
*
* @param array $data
* @return void
*/
public function processPaymentView(array $data) public function processPaymentView(array $data)
{ {
$data = $this->paymentData($data); $data = $this->paymentData($data);
@ -81,12 +93,25 @@ class AuthorizeACH implements LivewireMethodInterface
return render('gateways.authorize.ach.pay', $data); return render('gateways.authorize.ach.pay', $data);
} }
/**
* tokenBilling
*
* @param mixed $cgt
* @param mixed $payment_hash
* @return void
*/
public function tokenBilling($cgt, $payment_hash) public function tokenBilling($cgt, $payment_hash)
{ {
$cc = new AuthorizeCreditCard($this->authorize); $cc = new AuthorizeCreditCard($this->authorize);
return $cc->tokenBilling($cgt, $payment_hash); return $cc->tokenBilling($cgt, $payment_hash);
} }
/**
* processPaymentResponse
*
* @param mixed $request
* @return void
*/
public function processPaymentResponse($request) public function processPaymentResponse($request)
{ {