Skip to content

Commit 7a765c8

Browse files
contardiThiago Contardi
andauthored
fix: monitiring status wasn't taken into account (#10)
* feat: added new credit card form * feat: added setup for old settings and minor bugfixes * fix: error with 1i18n on setting's page * fix: allow all countris by default * i18n: add new terms for language file * feat: added max installments and minum installment value * feat: added reseller token to transactions * feat: added reseller token to transactions * feat: send tracking code to Vindi * fix: mask also reseller token and token account * fix: when the card number comes with 4 digits, don't add 20 before it * fix: when the card number comes with 4 digits, don't add 20 before it * doc: added pull request template * fix: observer to bankslippix * fix: cancel unapproved orders without config * feat: adjust with phpstan * fix: error monitoring transactions --------- Co-authored-by: Thiago Contardi <thiago@bizcommerce.com.br>
1 parent eba374e commit 7a765c8

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Gateway/Response/CreditCard/TransactionHandler.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ public function handle(array $handlingSubject, array $response)
8787
$responseTransaction = $transaction['data_response']['transaction'];
8888
$payment = $this->helperOrder->updateDefaultAdditionalInfo($payment, $responseTransaction);
8989

90-
if ($responseTransaction['status_id'] == HelperOrder::STATUS_PENDING) {
90+
if (
91+
$responseTransaction['status_id'] == HelperOrder::STATUS_PENDING
92+
|| $responseTransaction['status_id'] == HelperOrder::STATUS_MONITORING
93+
|| $responseTransaction['status_id'] == HelperOrder::STATUS_CONTESTATION
94+
) {
9195
$payment->getOrder()->setState('new');
9296
$payment->setSkipOrderProcessing(true);
9397
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vindi/magento2-payments",
33
"description": "Vindi VP Payment Method for Magento 2.3+",
44
"type": "magento2-module",
5-
"version": "1.3.4",
5+
"version": "1.3.5",
66
"license": [
77
"OSL-3.0",
88
"AFL-3.0"

etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
-->
1515
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
16-
<module name="Vindi_VP" setup_version="1.3.4">
16+
<module name="Vindi_VP" setup_version="1.3.5">
1717
<sequence>
1818
<module name="Magento_Sales"/>
1919
<module name="Magento_Payment"/>

0 commit comments

Comments
 (0)