forked from invoiceninja/invoiceninja
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
resources/views/portal/ninja2020/gateways/custom/pay_livewire.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<div class="rounded-lg border bg-card text-card-foreground shadow-sm overflow-hidden py-5 bg-white sm:gap-4"> | ||
|
||
<form action="{{ route('client.payments.response') }}" method="post" id="server-response"> | ||
@csrf | ||
<input type="hidden" name="gateway_response"> | ||
<input type="hidden" name="payment_hash" value="{{ $payment_hash }}"> | ||
<input type="hidden" name="company_gateway_id" value="{{ $gateway->getCompanyGatewayId() }}"> | ||
<input type="hidden" name="payment_method_id" value="{{ $payment_method_id }}"> | ||
<input type="hidden" name="token"> | ||
</form> | ||
@component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.payment_type')]) | ||
{{ $title }} | ||
@endcomponent | ||
|
||
@include('portal.ninja2020.gateways.includes.payment_details') | ||
|
||
@component('portal.ninja2020.components.general.card-element-single') | ||
{!! nl2br($instructions) !!} | ||
@endcomponent | ||
</div> | ||
@script | ||
<script> | ||
function submitResponse(response){ | ||
document.querySelector( | ||
'input[name="gateway_response"]' | ||
).value = JSON.stringify(response); | ||
document.getElementById('server-response').submit(); | ||
} | ||
</script> | ||
@endscript |