This commit is contained in:
= 2021-06-13 20:37:37 +10:00
parent a441b3f79e
commit 62811d968b
2 changed files with 12 additions and 0 deletions

View File

@ -114,6 +114,10 @@ class WePayPaymentDriver extends BaseDriver
public function authorizeView(array $data) public function authorizeView(array $data)
{ {
$data['gateway'] = $this->wepay;
// $data['public_client_id'] = $this->authorize->init()->getPublicClientKey();
// $data['api_login_id'] = $this->authorize->company_gateway->getConfigField('apiLoginId');
return $this->payment_method->authorizeView($data); //this is your custom implementation from here return $this->payment_method->authorizeView($data); //this is your custom implementation from here
} }

View File

@ -9,7 +9,15 @@
@endsection @endsection
@section('gateway_content') @section('gateway_content')
<form action="{{ route('client.payment_methods.store', ['method' => App\Models\GatewayType::CREDIT_CARD]) }}"
method="post" id="server_response">
@csrf
<input type="hidden" name="company_gateway_id" value="{{ $gateway->company_gateway->id }}">
<input type="hidden" name="payment_method_id" value="1">
<input type="hidden" name="gateway_response" id="gateway_response">
<input type="hidden" name="is_default" id="is_default">
</form>
<table> <table>
<tr> <tr>
<td>Name: </td> <td>Name: </td>