thirtybees / stripe

Stripe payment module
https://stripe.com
Academic Free License v3.0
6 stars 12 forks source link

Show payment amount on Pay button #23

Open ghost opened 5 years ago

ghost commented 5 years ago

To make things clearer and avoid the need of scrolling for the visitors, I would show the payment amount on the Pay button of the stripe iframe views/templates/front/checkoutiframe.tpl

Pay $ XX,XX Pay XX,XX €

for example

romaric33 commented 4 years ago

I agree with this idea.

romaric33 commented 3 years ago

To achieve this, I have edited the file /modules/stripe/views/templates/hookccpayment.tpl on line 152

data-tid="elements_thirtybees.form.donate_button">{l s='Pay' mod='stripe'} {displayPrice price=$total_price}</button>

but when changing carrier for instance, the price will not be shown anymore.

My new solution is: data-tid="elements_thirtybees.form.donate_button">{l s='Pay' mod='stripe'} {$stripe_amount / 100} €</button> hower the currency sign is hardcoded and it uses a dot to separate decimals where in France we would use a comma.