diff --git a/etc/email_templates.xml b/etc/email_templates.xml
new file mode 100644
index 0000000..55bbbdd
--- /dev/null
+++ b/etc/email_templates.xml
@@ -0,0 +1,10 @@
+
+
+
+
diff --git a/i18n/pl_PL.csv b/i18n/pl_PL.csv
index f178c0e..72a2ff1 100644
--- a/i18n/pl_PL.csv
+++ b/i18n/pl_PL.csv
@@ -98,3 +98,19 @@
"Pay with Tpay!","Zapłać za zakupy z Tpay!"
"Confirm payment in Your banking application.","Potwierdź płatność w aplikacji mobilnej swojego banku."
"A private client IP (%1) was detected. Please verify proxy or reverse proxy configuration, otherwise card payments may be rejected by anti-fraud mechanisms.","Wykryto prywatny adres IP klienta (%1). Sprawdź konfigurację proxy lub reverse proxy, ponieważ płatności kartowe mogą być odrzucane przez mechanizmy antyfraudowe."
+"Pending Payment with Tpay","Oczekuje na płatność z Tpay"
+"Pay with Tpay","Opłać z Tpay"
+"Send Payment Reminder","Wyślij przypomnienie o płatności"
+"Template for payment reminder emails","Szablon wiadomości email z przypomnieniem o płatności"
+"Hello, %name","Witaj, %name"
+"Your order %order has not been paid yet.","Twoje zamówienie %order nie zostało jeszcze opłacone."
+"Use link below to finalise Your payment","Uzyj linku poniżej aby dokończyć płatność"
+"Reminder allowed only for pending payments.","Nie można wysłać ponaglenia dla opłaconego zamówienia."
+"No payment found for this order.","Wskazane zamówienie nie posiada danych płatności."
+"Payment does not contain transaction url.","Dla wskazanej płatności nie wygnerowano linku płatności."
+"Reminder has been sent.","Ponaglenie zostało wysłane."
+"Problem during sending reminder.","Nie udało się wysłać ponaglenia."
+"Send Tpay Payment Reminder","Wysyłanie przypominień o płatnóści Tpay"
+"Emails can be sent manually from order details view given order staus is Pending Payment Tpay","Powiadomienie może zostać wysłane manualnie z ekranu szczegółów zamówienia dla zamówień w statusie Oczekuje na płatnośc z Tpay"
+"Tpay payment reminder email","Tpay przypomnienie o płatności"
+"Payment reminder sent","Wysłano ponaglenie płatności"
diff --git a/phpstan.neon b/phpstan.neon
index c0d7b36..ae09b99 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -7,6 +7,9 @@ parameters:
- ./.dev-tools/
scanFiles:
- ./.dev-tools/stubs/magentoAutogenerated.stub
+ - ./.dev-tools/stubs/BackendAction.stub
+ - ./.dev-tools/stubs/EmailTemplate.stub
+ - ./.dev-tools/stubs/OrderView.stub
- ./.dev-tools/stubs/ArgumentInterface.stub
- ./.dev-tools/stubs/Session.stub
- ./.dev-tools/stubs/FormKey.stub
diff --git a/view/frontend/email/payment_reminder_email.html b/view/frontend/email/payment_reminder_email.html
new file mode 100644
index 0000000..0d485ac
--- /dev/null
+++ b/view/frontend/email/payment_reminder_email.html
@@ -0,0 +1,18 @@
+
+
+{{template config_path="design/email/header_template"}}
+
+{{trans "Hello, %name" name=$name}}
+
+
+ {{trans "Your order %order has not been paid yet." order=$order}}
+ {{trans "Use link below to finalise Your payment"}}
+
+
+{{trans "Pay with Tpay"}}
+
+{{template config_path="design/email/footer_template"}}
diff --git a/view/frontend/layout/sales_order_view.xml b/view/frontend/layout/sales_order_view.xml
new file mode 100644
index 0000000..27714cf
--- /dev/null
+++ b/view/frontend/layout/sales_order_view.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+ Tpay\Magento2\ViewModel\Order\Button
+
+
+
+
+
diff --git a/view/frontend/templates/button.phtml b/view/frontend/templates/button.phtml
new file mode 100644
index 0000000..ccd89fd
--- /dev/null
+++ b/view/frontend/templates/button.phtml
@@ -0,0 +1,16 @@
+getViewModel();
+?>
+
+shouldShowButton() && $viewModel->getPaymentUrl()) : ?>
+
+ = $escaper->escapeHtml(__('Pay with Tpay')) ?>
+
+