Skip to content

Commit

Permalink
Merge pull request invoiceninja#10146 from turbo124/v5-develop
Browse files Browse the repository at this point in the history
v5.10.38
  • Loading branch information
turbo124 authored Oct 15, 2024
2 parents d8ab4f7 + 81ce96b commit b09a9b8
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.10.37
5.10.38
4 changes: 2 additions & 2 deletions config/ninja.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
'require_https' => env('REQUIRE_HTTPS', true),
'app_url' => rtrim(env('APP_URL', ''), '/'),
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
'app_version' => env('APP_VERSION', '5.10.37'),
'app_tag' => env('APP_TAG', '5.10.37'),
'app_version' => env('APP_VERSION', '5.10.38'),
'app_tag' => env('APP_TAG', '5.10.38'),
'minimum_client_version' => '5.0.16',
'terms_version' => '1.0.1',
'api_secret' => env('API_SECRET', false),
Expand Down
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

0 comments on commit b09a9b8

Please sign in to comment.