mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
paypal pro
This commit is contained in:
parent
7c70bc5394
commit
452d158759
@ -14,7 +14,7 @@
|
||||
<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="templateD">
|
||||
<input type="hidden" name="template" value="templateA">
|
||||
<input type="hidden" name="return"
|
||||
value="https://yourwebsite.com/receipt_page.html">
|
||||
</form>
|
||||
@ -27,6 +27,18 @@
|
||||
|
||||
@component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.pay_with')])
|
||||
<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
|
||||
|
||||
@include('portal.ninja2020.gateways.includes.save_card')
|
||||
@ -38,5 +50,7 @@
|
||||
@endsection
|
||||
|
||||
@push('footer')
|
||||
|
||||
<script type="text/javascript">
|
||||
document.getElementById('form_iframe').submit();
|
||||
</script>
|
||||
@endpush
|
Loading…
x
Reference in New Issue
Block a user