Skip to content

Commit

Permalink
PPSYL-126 - Mention that the payment will not be captured immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
Jibbarth committed Dec 13, 2024
1 parent c596f49 commit 991ff93
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/Resources/translations/messages.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ payplug_sylius_payplug_plugin:
place_order.label: 'Place order'
transaction_secure.label: 'Transaction secured by'
privacy_policy.label: 'Privacy Policy'
deferred_capture:
process_order_info: |
You will be charged when your order is processed.
form:
oney_error: Some missing information is required to pay using Oney by Payplug
complete_info:
Expand Down
4 changes: 4 additions & 0 deletions src/Resources/translations/messages.fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ payplug_sylius_payplug_plugin:
place_order.label: 'Confirmer le paiement'
transaction_secure.label: 'Transaction sécurisée par'
privacy_policy.label: 'Politique de confidentialité'
deferred_capture:
process_order_info: |
Vous serez prélevé(é) lors du traitement de votre commande.
form:
oney_error: Il y a des informations manquantes pour pouvoir payer en utilisant Oney by Payplug
complete_info:
Expand Down
3 changes: 3 additions & 0 deletions src/Resources/translations/messages.it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ payplug_sylius_payplug_plugin:
place_order.label: 'Ordine'
transaction_secure.label: 'Transazione protetta da'
privacy_policy.label: 'Politica di confidenzialità'
deferred_capture:
process_order_info: |
L'addebito avverrà al momento dell'elaborazione dell'ordine.
form:
oney_error: Mancano alcune informazioni per poter pagare con “Oney by Payplug”
complete_info:
Expand Down
15 changes: 12 additions & 3 deletions src/Resources/views/form/integrated.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,18 @@
</label>
</div>
{% endif %}
<button id="paid" class="ui large primary button" type="button">
{{ 'payplug_sylius_payplug_plugin.ui.integrated_payment.place_order.label'|trans }}
</button>

<div class="payplugIntegratedPayment__container">
<button id="paid" class="ui large primary button" type="button">
{{ 'payplug_sylius_payplug_plugin.ui.integrated_payment.place_order.label'|trans }}
</button>
</div>
{% set config = paymentMethod.gatewayConfig.config %}
{% if config.deferredCapture is defined and config.deferredCapture is same as true %}
<div>
<span>{{ 'payplug_sylius_payplug_plugin.ui.deferred_capture.process_order_info'|trans }}</span>
</div>
{% endif %}
<div class="payplugIntegratedPayment__container payplugIntegratedPayment__container--transaction">
<img class="lock-icon" src="{{ asset('bundles/payplugsyliuspayplugplugin/assets/shop/images/integrated/lock.svg') }}" />
<div class="transaction-label">
Expand Down

0 comments on commit 991ff93

Please sign in to comment.