Paypal Standard re-factoring

This commit is contained in:
cuneytsenturk
2018-12-18 13:02:40 +03:00
parent df5eb71cbb
commit a1756a6219
26 changed files with 42 additions and 87 deletions

View File

@ -0,0 +1,21 @@
<?php
return [
'title' => 'Paypal Standard',
'paypalstandard' => 'Paypal Standard',
'form' => [
'email' => 'Email',
'mode' => 'Mode',
'debug' => 'Debug',
'transaction' => 'Transaction',
'customer' => 'Show to Customer',
'order' => 'Order',
],
'test_mode' => 'Warning: The payment gateway is in \'Sandbox Mode\'. Your account will not be charged.',
'description' => 'Pay with PAYPAL',
'confirm' => 'Confirm',
];

View File

@ -1,17 +0,0 @@
<?php
return [
'paypalstandard' => 'Paypal Standard',
'email' => 'Email',
'mode' => 'Mode',
'debug' => 'Debug',
'transaction' => 'Transaction',
'customer' => 'Show to Customer',
'order' => 'Order',
'test_mode' => 'Warning: The payment gateway is in \'Sandbox Mode\'. Your account will not be charged.',
'description' => 'Pay with PAYPAL',
'confirm' => 'Confirm',
];

View File

@ -1,11 +1,11 @@
<h2>{{ $gateway['name'] }}</h2>
@if($gateway['mode'] == 'sandbox')
<div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> {{ trans('paypalstandard::paypalstandard.test_mode') }}</div>
<div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> {{ trans('paypalstandard::general.test_mode') }}</div>
@endif
<div class="well well-sm">
{{ trans('paypalstandard::paypalstandard.description') }}
{{ trans('paypalstandard::general.description') }}
</div>
<form action="{{ $gateway['action'] }}" method="post">
@ -42,7 +42,7 @@
<input type="hidden" name="bn" value="Akaunting_1.0_WPS" />
<div class="buttons">
<div class="pull-right">
<input type="submit" value="{{ trans('paypalstandard::paypalstandard.confirm') }}" class="btn btn-success" />
<input type="submit" value="{{ trans('paypalstandard::general.confirm') }}" class="btn btn-success" />
</div>
</div>
</form>