Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 21 additions & 16 deletions lang/stripe.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: translations@galette.eu\n"
"POT-Creation-Date: 2026-09-30 12:25+0200\n"
"POT-Creation-Date: 2026-10-07 14:40+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -60,7 +60,7 @@ msgid "An error occurred loading the checkout form."
msgstr ""

#: ../lib/GaletteStripe/Controllers/StripeController.php:221
#: ../lib/GaletteStripe/PluginGaletteStripe.php:55
#: ../lib/GaletteStripe/PluginGaletteStripe.php:56
msgid "Stripe History"
msgstr ""

Expand All @@ -80,48 +80,53 @@ msgstr ""
msgid "An error occurred saving stripe settings."
msgstr ""

#: ../lib/GaletteStripe/Controllers/StripeController.php:592
#: ../lib/GaletteStripe/Controllers/StripeController.php:596
msgid "Payment done"
msgstr ""

#: ../lib/GaletteStripe/Controllers/StripeController.php:624
#: ../lib/GaletteStripe/Controllers/StripeController.php:628
msgid "Your payment has been aborted!"
msgstr ""

#: ../lib/GaletteStripe/PluginGaletteStripe.php:47
#: ../lib/GaletteStripe/PluginGaletteStripe.php:48
msgid "Stripe"
msgstr ""

#: ../lib/GaletteStripe/PluginGaletteStripe.php:82
#: ../lib/GaletteStripe/PluginGaletteStripe.php:106
#: ../lib/GaletteStripe/PluginGaletteStripe.php:83
#: ../lib/GaletteStripe/PluginGaletteStripe.php:111
#: ../lib/GaletteStripe/PluginGaletteStripe.php:129
msgid "Payment form"
msgstr ""

#: ../lib/GaletteStripe/StripeHistory.php:182
#: ../lib/GaletteStripe/StripeHistory.php:202
msgid "None"
msgstr ""

#: ../templates/default/stripe_success.html.twig:16
#: ../templates/default/stripe_success.html.twig:17
msgid "Your payment is being processed"
msgstr ""

#: ../templates/default/stripe_success.html.twig:19
msgid "Your payment has succeeded"
msgstr ""

#: ../templates/default/stripe_success.html.twig:18
msgid "You will receive an email with the following details"
#: ../templates/default/stripe_success.html.twig:22
msgid "A receipt will be sent to you by email once it has been validated"
msgstr ""

#: ../templates/default/stripe_success.html.twig:23
#: ../templates/default/stripe_success.html.twig:28
msgid "Amount paid"
msgstr ""

#: ../templates/default/stripe_success.html.twig:27
#: ../templates/default/stripe_success.html.twig:33
msgid "Payment date"
msgstr ""

#: ../templates/default/stripe_success.html.twig:31
#: ../templates/default/stripe_success.html.twig:37
msgid "Payment method"
msgstr ""

#: ../templates/default/stripe_success.html.twig:35
#: ../templates/default/stripe_success.html.twig:41
#: ../templates/default/stripe_form.html.twig:15
msgid "Payment reason"
msgstr ""
Expand Down Expand Up @@ -271,6 +276,6 @@ msgid ""
"the contributions types settings."
msgstr ""

#: ../templates/default/stripe_preferences.html.twig:149
#: ../templates/default/stripe_preferences.html.twig:150
msgid "Select a currency"
msgstr ""
45 changes: 25 additions & 20 deletions lang/stripe_en_US.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-09-30 12:25+0200\n"
"PO-Revision-Date: 2026-09-30 12:25+0200\n"
"Report-Msgid-Bugs-To: translations@galette.eu\n"
"POT-Creation-Date: 2026-10-07 14:40+0200\n"
"PO-Revision-Date: 2026-10-07 14:40+0200\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: en_US\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ASCII\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

Expand Down Expand Up @@ -67,7 +67,7 @@ msgid "An error occurred loading the checkout form."
msgstr "An error occurred loading the checkout form."

#: ../lib/GaletteStripe/Controllers/StripeController.php:221
#: ../lib/GaletteStripe/PluginGaletteStripe.php:55
#: ../lib/GaletteStripe/PluginGaletteStripe.php:56
msgid "Stripe History"
msgstr "Stripe History"

Expand All @@ -87,48 +87,53 @@ msgstr "Stripe settings have been saved."
msgid "An error occurred saving stripe settings."
msgstr "An error occurred saving stripe settings."

#: ../lib/GaletteStripe/Controllers/StripeController.php:592
#: ../lib/GaletteStripe/Controllers/StripeController.php:596
msgid "Payment done"
msgstr "Payment done"

#: ../lib/GaletteStripe/Controllers/StripeController.php:624
#: ../lib/GaletteStripe/Controllers/StripeController.php:628
msgid "Your payment has been aborted!"
msgstr "Your payment has been aborted!"

#: ../lib/GaletteStripe/PluginGaletteStripe.php:47
#: ../lib/GaletteStripe/PluginGaletteStripe.php:48
msgid "Stripe"
msgstr "Stripe"

#: ../lib/GaletteStripe/PluginGaletteStripe.php:82
#: ../lib/GaletteStripe/PluginGaletteStripe.php:106
#: ../lib/GaletteStripe/PluginGaletteStripe.php:83
#: ../lib/GaletteStripe/PluginGaletteStripe.php:111
#: ../lib/GaletteStripe/PluginGaletteStripe.php:129
msgid "Payment form"
msgstr "Payment form"

#: ../lib/GaletteStripe/StripeHistory.php:182
#: ../lib/GaletteStripe/StripeHistory.php:202
msgid "None"
msgstr "None"

#: ../templates/default/stripe_success.html.twig:16
#: ../templates/default/stripe_success.html.twig:17
msgid "Your payment is being processed"
msgstr "Your payment is being processed"

#: ../templates/default/stripe_success.html.twig:19
msgid "Your payment has succeeded"
msgstr "Your payment has succeeded"

#: ../templates/default/stripe_success.html.twig:18
msgid "You will receive an email with the following details"
msgstr "You will receive an email with the following details"
#: ../templates/default/stripe_success.html.twig:22
msgid "A receipt will be sent to you by email once it has been validated"
msgstr "A receipt will be sent to you by email once it has been validated"

#: ../templates/default/stripe_success.html.twig:23
#: ../templates/default/stripe_success.html.twig:28
msgid "Amount paid"
msgstr "Amount paid"

#: ../templates/default/stripe_success.html.twig:27
#: ../templates/default/stripe_success.html.twig:33
msgid "Payment date"
msgstr "Payment date"

#: ../templates/default/stripe_success.html.twig:31
#: ../templates/default/stripe_success.html.twig:37
msgid "Payment method"
msgstr "Payment method"

#: ../templates/default/stripe_success.html.twig:35
#: ../templates/default/stripe_success.html.twig:41
#: ../templates/default/stripe_form.html.twig:15
msgid "Payment reason"
msgstr "Payment reason"
Expand Down Expand Up @@ -282,6 +287,6 @@ msgstr ""
"reason on the form. You can disable this reason, or set a positive value in "
"the contributions types settings."

#: ../templates/default/stripe_preferences.html.twig:149
#: ../templates/default/stripe_preferences.html.twig:150
msgid "Select a currency"
msgstr "Select a currency"
3 changes: 2 additions & 1 deletion lib/GaletteStripe/Controllers/StripeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,8 @@ public function successUrl(Request $request, Response $response): Response
'amount' => $stripe->isZeroDecimal($stripe->getCurrency()) ? $payment_intent->amount_received : $payment_intent->amount_received / 100,
'date' => $payment_intent->created,
'method' => $payment_intent->payment_method_types[0],
'reason' => $metadata['item_name']
'reason' => $metadata['item_name'],
'status' => $payment_intent->status
];

$params = [
Expand Down
20 changes: 13 additions & 7 deletions templates/default/stripe_success.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,25 @@
{% if details is not empty %}
{% set amount = stripe.isZeroDecimal(stripe.getCurrency()) ? details.amount|round : details.amount %}
<div class="ui info visible icon attached message">
<i class="check icon"></i>
<i class="{% if details.status == 'processing' %}hourglass half{% else %}check{% endif %} icon"></i>
<div class="content">
<div class="header">
{{ _T('Your payment has succeeded', "stripe") }}
{% if details.status == 'processing' %}
{{ _T('Your payment is being processed', "stripe") }}
{% else %}
{{ _T('Your payment has succeeded', "stripe") }}
{% endif %}
</div>
<p>{{ _T('You will receive an email with the following details', 'stripe') }}</p>
<p>{{ _T('A receipt will be sent to you by email once it has been validated', 'stripe') }}</p>
</div>
</div>
<table class="ui striped definition attached table">
<tr>
<th class="collapsing">{{ _T('Amount paid', 'stripe') }}</th>
<td>{{ amount|format_currency(stripe.getCurrency(), {}, i18n.getWebID()) }}</td>
</tr>
{% if details.status != 'processing' %}
<tr>
<th class="collapsing">{{ _T('Amount paid', 'stripe') }}</th>
<td>{{ amount|format_currency(stripe.getCurrency(), {}, i18n.getWebID()) }}</td>
</tr>
{% endif %}
<tr>
<th class="collapsing">{{ _T('Payment date', 'stripe') }}</th>
<td>{{ details.date|date("Y-m-d H:i") }}</td>
Expand Down
Loading