Skip to content

Commit

Permalink
Fix form action url to env value
Browse files Browse the repository at this point in the history
  • Loading branch information
zarulizham committed Feb 21, 2024
1 parent 6722bcf commit f74068f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions resources/views/redirect_to_bpg.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
font-weight: 200;
color: grey
}
</style>
</head>

Expand All @@ -26,12 +25,12 @@
</div>
<div class="card">
<div class="card-body">
<form x-data x-init="$refs.submit.click()" action="https://3dgatewaytest.ambankgroup.com/BPG/admin/payment/PaymentWindow.jsp" method="post">
<form x-data x-init="$refs.submit.click()" action="{{ config('ecommerce.payment_window_url') }}" method="post">
@foreach ($request->list() as $index => $data)
<div class="form-group mb-3">
<label for="">{{ $index }}</label>
<input class="form-control" type="hidden" name="{{ $index }}" value="{{ $data }}">
</div>
<div class="form-group mb-3">
<label for="">{{ $index }}</label>
<input class="form-control" type="hidden" name="{{ $index }}" value="{{ $data }}">
</div>
@endforeach
<button x-ref="submit" class="btn btn-primary">Submit</button>
</form>
Expand Down

0 comments on commit f74068f

Please sign in to comment.