paypal pro

This commit is contained in:
David Bomba 2023-06-19 15:51:30 +10:00
parent 7c70bc5394
commit 452d158759

View File

@ -14,7 +14,7 @@
<input type="hidden" name="subtotal" value="{{ $total['amount_with_fee'] }}"> <input type="hidden" name="subtotal" value="{{ $total['amount_with_fee'] }}">
<input type="hidden" name="business" value="{{ $gateway->company_gateway->getConfigField('username') }}"> <input type="hidden" name="business" value="{{ $gateway->company_gateway->getConfigField('username') }}">
<input type="hidden" name="paymentaction" value="sale"> <input type="hidden" name="paymentaction" value="sale">
<input type="hidden" name="template" value="templateD"> <input type="hidden" name="template" value="templateA">
<input type="hidden" name="return" <input type="hidden" name="return"
value="https://yourwebsite.com/receipt_page.html"> value="https://yourwebsite.com/receipt_page.html">
</form> </form>
@ -27,6 +27,18 @@
@component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.pay_with')]) @component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.pay_with')])
<iframe name="hss_iframe" width="570px" height="540px"></iframe> <iframe name="hss_iframe" width="570px" height="540px"></iframe>
<form style="display:none" target="hss_iframe" name="form_iframe" id="form_iframe"
method="post"
action="https://pilot-payflowpro.paypal.com/">
<input type="hidden" name="cmd" value="_hosted-payment">
<input type="hidden" name="subtotal" value="{{ $total['amount_with_fee'] }}">
<input type="hidden" name="business" value="{{ $gateway->company_gateway->getConfigField('username') }}">
<input type="hidden" name="paymentaction" value="sale">
<input type="hidden" name="template" value="templateA">
<input type="hidden" name="return"
value="https://yourwebsite.com/receipt_page.html">
</form>
@endcomponent @endcomponent
@include('portal.ninja2020.gateways.includes.save_card') @include('portal.ninja2020.gateways.includes.save_card')
@ -38,5 +50,7 @@
@endsection @endsection
@push('footer') @push('footer')
<script type="text/javascript">
document.getElementById('form_iframe').submit();
</script>
@endpush @endpush