Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5 from MartiSalaMorral/bugfix/REV-7274-redsys-pay…
Browse files Browse the repository at this point in the history
…ment

Fixed display when bank icon is pressent
  • Loading branch information
BadChoice authored Apr 1, 2022
2 parents eea61dc + 4c71f32 commit 9fb58ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/resources/views/redsys/iframe.blade.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<script src="{{ $iframeUrl }}"></script>
<div style="max-width:400px;" class="mx-auto space-x-2">
<div style="max-width:400px;" class="mx-auto space-x-2 mb-4">
<input type="checkbox" wire:model="shouldSaveCard" />
<label class="">{{ __(config('redsys.translationsPrefix') . 'saveCardForPayments') }}</label>
<label>{{ __(config('redsys.translationsPrefix') . 'saveCardForPayments') }}</label>
</div>
<div id="{{ $redsysFormId }}" style="height: 240px; margin: auto;" wire:ignore>
{{-- @include('redsys::livewire.includes.loading-ring')--}}
<div id="{{ $redsysFormId }}" style="height: 300px; margin: auto;" wire:ignore>
</div>
<input type="hidden" id="token"/>
<input type="hidden" id="errorCode"/>
2 changes: 1 addition & 1 deletion src/resources/views/redsys/main.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function loadRedsysForm(inputsStyle = '') {
'font-size:16px; font-weight: 700;' +
'font-family: ui-sans-serif, system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"';
boxStyle = 'box-shadow:none; margin-top:24px'
bodyStyle = 'margin-top: -68px; color: gray'
bodyStyle = 'margin-top: -30px; color: gray'
// Redsys iframe available method to load card form
getInSiteForm('{{ $redsysFormId }}', buttonStyle, bodyStyle, boxStyle, inputsStyle, '{!! __(config('redsys.translationsPrefix') . 'pay') . ' ' . $chargePayment->price->format() !!}',
"{{ $redsysConfig->code }}", "{{ $redsysConfig->terminal }}", "{{ $paymentReference }}", false)
Expand Down

0 comments on commit 9fb58ce

Please sign in to comment.