Added the extra note on summary for stripe fees when customer is selected to pay stripe fees as transaction fees

This commit is contained in:
Prashant Singh 2019-06-27 05:05:56 +05:30
parent 9ba162e7a0
commit 790bc2d7a4
3 changed files with 20 additions and 15 deletions

View File

@ -36,6 +36,23 @@
</label>
</div>
@if(core()->getConfigData('stripe.connect.details.stripefees') == 'customer')
<div class="item-detail">
@php
$applicationFee = $cart->base_grand_total;
$applicationFee = (0.029 * $applicationFee) + (0.02 * $applicationFee) + 0.3;
$applicationFee = core()->currency($applicationFee);
@endphp
<label>
{{ __('stripe::app.transaction-fee') }}
<small>{{ __('stripe::app.more-info') }}</small>
</label>
<label class="right">{{ $applicationFee }}</label>
</div>
@endif
<div class="payable-amount" id="grand-total-detail">
<label>{{ __('shop::app.checkout.total.grand-total') }}</label>

View File

@ -21,20 +21,6 @@ return [
'validation' => 'required',
'channel_based' => false,
'locale_based' => false
], [
'name' => 'active',
'title' => 'Enable On Checkout',
'type' => 'select',
'options' => [
[
'title' => 'True',
'value' => true
], [
'title' => 'False',
'value' => false
]
],
'validation' => 'required'
], [
'name' => 'stripefees',
'title' => 'Stripe fee to be paid by customer or seller',

View File

@ -15,5 +15,7 @@ return [
'payment-failed' => 'Error! Payment Cannot Be Done',
'payment-success' => 'Success! Payment Done',
'click-continue' => 'Click continue to proceed further',
'some-error' => 'Some error occurred'
'some-error' => 'Some error occurred',
'transaction-fee' => 'Stripe Fees',
'more-info' => '(after successful order)'
];