Skip to content

Commit

Permalink
Payment state fix
Browse files Browse the repository at this point in the history
Fixed updating payment state to processing after payment notification.
  • Loading branch information
piotrjozwiak committed Apr 30, 2019
1 parent 3f2f16b commit 41edf9c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Service/TpayService.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function SetOrderStatus($orderId, array $validParams, $tpayModel)
if ($emailNotify) {
$order->setSendEmail(true);
}
$order->setStatus($status)->save();
$order->setStatus($status)->setState($status)->save();
if ($sendNewInvoiceMail) {
foreach ($order->getInvoiceCollection() as $invoice) {
$invoice_id = $invoice->getIncrementId();
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "tpaycom/magento2basic",
"description": "tpay.com payments module",
"type": "magento2-module",
"version": "1.4.3",
"version": "1.4.4",
"license": [
"OSL-3.0"
],
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="tpaycom_magento2basic" setup_version="1.4.3">
<module name="tpaycom_magento2basic" setup_version="1.4.4">
<sequence>
<module name="Magento_Sales" />
<module name="Magento_Payment" />
Expand Down

0 comments on commit 41edf9c

Please sign in to comment.