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
9 changes: 9 additions & 0 deletions Notification/Strategy/DefaultNotificationProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ public function process($notification)
throw new RuntimeException('Order amount mismatch');
}

if (1 === $notification->test_mode->getValue()) {
$this->tpayService->addCommentToHistory(
$orderId,
__('Received test mode payment confirmation notification. No funds have been collected form customer.')
);

return;
}

switch ($notification->tr_status->getValue()) {
case 'TRUE':
case 'PAID':
Expand Down
1 change: 1 addition & 0 deletions i18n/pl_PL.csv
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,4 @@
"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"
"Received test mode payment confirmation notification. No funds have been collected form customer.","Odebrano potwierdzenie płatności Tpay w trybie testowym. Środki nie zostały pobrane od klienta."
Loading