Skip to content

Commit

Permalink
Merge pull request #61 from NicolasBarbey/main
Browse files Browse the repository at this point in the history
fix subscription page
  • Loading branch information
NicolasBarbey authored Feb 25, 2025
2 parents 9683483 + 22d077f commit 5ee3c30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<language>en_US</language>
<language>fr_FR</language>
</languages>
<version>5.0.1</version>
<version>5.0.2</version>
<authors>
<author>
<name>gbarral</name>
Expand Down
6 changes: 1 addition & 5 deletions templates/frontOffice/default/paypal/paypal-payment.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,9 @@ <h1 class="text-2xl">{intl l="PayPal - Sélection de paiement"}</h1>
</div>
</section>
</div>
{$fundings = "paylater,card"}
{if $intent eq 'subscription'}
{$fundings = "card"}
{/if}

<script
src="https://www.paypal.com/sdk/js?client-id={$paypal_client_id}&currency={currency attr="code"}&intent={$intent}&components=buttons&enable-funding={$fundings}"
src="https://www.paypal.com/sdk/js?client-id={$paypal_client_id}&currency={currency attr="code"}&intent={$intent}&components=buttons&enable-funding=paylater,card{if $intent eq 'subscription'}&vault=true{/if}"
></script>

{if $intent eq 'subscription'}
Expand Down

0 comments on commit 5ee3c30

Please sign in to comment.