ACH with livewrie
This commit is contained in:
parent
441349bc70
commit
0a13a4d32e
|
|
@ -45,17 +45,23 @@ class AuthorizeACH implements LivewireMethodInterface
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* livewirePaymentView
|
||||
*
|
||||
* @param array $data
|
||||
* @return 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';
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* paymentData
|
||||
*
|
||||
* @param array $data
|
||||
* @return array
|
||||
*/
|
||||
public function paymentData(array $data): array
|
||||
{
|
||||
|
||||
|
|
@ -74,6 +80,12 @@ class AuthorizeACH implements LivewireMethodInterface
|
|||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* processPaymentView
|
||||
*
|
||||
* @param array $data
|
||||
* @return void
|
||||
*/
|
||||
public function processPaymentView(array $data)
|
||||
{
|
||||
$data = $this->paymentData($data);
|
||||
|
|
@ -81,12 +93,25 @@ class AuthorizeACH implements LivewireMethodInterface
|
|||
return render('gateways.authorize.ach.pay', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* tokenBilling
|
||||
*
|
||||
* @param mixed $cgt
|
||||
* @param mixed $payment_hash
|
||||
* @return void
|
||||
*/
|
||||
public function tokenBilling($cgt, $payment_hash)
|
||||
{
|
||||
$cc = new AuthorizeCreditCard($this->authorize);
|
||||
return $cc->tokenBilling($cgt, $payment_hash);
|
||||
}
|
||||
|
||||
/**
|
||||
* processPaymentResponse
|
||||
*
|
||||
* @param mixed $request
|
||||
* @return void
|
||||
*/
|
||||
public function processPaymentResponse($request)
|
||||
{
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue