Skip to content

Commit 5ee3c30

Browse files
Merge pull request #61 from NicolasBarbey/main
fix subscription page
2 parents 9683483 + 22d077f commit 5ee3c30

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Config/module.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<language>en_US</language>
1616
<language>fr_FR</language>
1717
</languages>
18-
<version>5.0.1</version>
18+
<version>5.0.2</version>
1919
<authors>
2020
<author>
2121
<name>gbarral</name>

templates/frontOffice/default/paypal/paypal-payment.html

+1-5
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,9 @@ <h1 class="text-2xl">{intl l="PayPal - Sélection de paiement"}</h1>
5252
</div>
5353
</section>
5454
</div>
55-
{$fundings = "paylater,card"}
56-
{if $intent eq 'subscription'}
57-
{$fundings = "card"}
58-
{/if}
5955

6056
<script
61-
src="https://www.paypal.com/sdk/js?client-id={$paypal_client_id}&currency={currency attr="code"}&intent={$intent}&components=buttons&enable-funding={$fundings}"
57+
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}"
6258
></script>
6359

6460
{if $intent eq 'subscription'}

0 commit comments

Comments
 (0)