offline payment module customer & portal payment method show page fixed..

This commit is contained in:
Cüneyt Şentürk 2020-12-21 10:24:36 +03:00
parent 9551b106e7
commit 7fd25b1c10
2 changed files with 2 additions and 43 deletions

View File

@ -1,5 +1,5 @@
<div>
<div class="d-none">
<div>
@if (!empty($setting['name']))
<h2>{{ $setting['name'] }}</h2>
@endif

View File

@ -1,46 +1,5 @@
<h2>{{ $setting['name'] }}</h2>
@if ($setting['description'])
<div class="well well-sm">
{{ $setting['description'] }}
</div>
@endif
<div class="buttons">
<div class="float-right">
<input type="button" value="{{ trans('offline-payments::general.confirm') }}" id="button-confirm" class="btn btn-success" data-loading-text="{{ trans('offline-payments::general.loading') }}" />
</div>
</div>
<script type="text/javascript"><!--
$('#button-confirm').on('click', function() {
$.ajax({
url: '{!! urldecode($confirm_url) !!}',
type: 'POST',
dataType: 'JSON',
data: {payment_method: '{{ $setting['code'] }}'},
cache: false,
headers: { 'X-CSRF-TOKEN': '{{ csrf_token() }}' },
beforeSend: function() {
$('#button-confirm').button('loading');
},
complete: function() {
$('#button-confirm').button('reset');
},
success: function(data) {
if (data['error']) {
alert(data['error']);
}
if (data['success']) {
location.reload();
}
}
});
});
//--></script>
<div>
<div class="d-none">
<div>
@if (!empty($setting['name']))
<h2>{{ $setting['name'] }}</h2>
@endif