Skip to content

Commit

Permalink
Merge pull request #60 from NicolasBarbey/main
Browse files Browse the repository at this point in the history
add pay later option
  • Loading branch information
NicolasBarbey authored Feb 25, 2025
2 parents ec9c006 + a75ce95 commit 9683483
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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>4.0.9</version>
<version>5.0.1</version>
<authors>
<author>
<name>gbarral</name>
Expand Down
11 changes: 8 additions & 3 deletions templates/frontOffice/default/paypal/paypal-payment.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,14 @@ <h1 class="text-2xl">{intl l="PayPal - Sélection de paiement"}</h1>
</div>
</section>
</div>
<script src="https://www.paypal.com/sdk/js?client-id={$paypal_client_id}&currency={currency attr="code"}&intent={$intent}&commit=false&vault=true">
// Replace YOUR_CLIENT_ID with your sandbox client ID
</script>
{$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}"
></script>

{if $intent eq 'subscription'}
<script>
Expand Down

0 comments on commit 9683483

Please sign in to comment.