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:
parent
9ba162e7a0
commit
790bc2d7a4
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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)'
|
||||
];
|
||||
Loading…
Reference in New Issue