AltaPay / plugin-magento2

MIT License
0 stars 3 forks source link

No transaction_id error when editing/cancelling the order which is also a result of edited order. #25

Closed aluminium1989 closed 3 years ago

aluminium1989 commented 4 years ago

tail -f exception.log

[2020-09-30 12:50:35] main.CRITICAL: The option "transaction_id" with value null is expected to be of type "string" or "int" or "Altapay\Response\Embeds\Transaction", but is of type "NULL". {"exception":"[object] (Symfony\Component\OptionsResolver\Exception\InvalidOptionsException(code: 0): The option \"transaction_id\" with value null is expected to be of type \"string\" or \"int\" or \"Altapay\Response\Embeds\Transaction\", but is of type \"NULL\". at /opt/vaimo/deploy/x9240/2020-09-22_12-09-46/htdocs/vendor/symfony/options-resolver/OptionsResolver.php:764)"} []

Steps to reproduce:

  1. Edit the order (which has been paid by Altapay credit card) in admin panel. E.g. remove one of purchased items
  2. Original order gets canceled. Newly created order is pending and paid by Altapay credit card.
  3. Try to edit this newly created order. See logs.

The order from step2 still has Altapay credit card as payment method but no transaction_id obviously.

Magento2.2 community. Module version in composer: "altapay/magento2-payment": "0.13.0"

BushraAsif commented 4 years ago

Thanks @aluminium1989, we will surely include this in our upcoming release.

BushraAsif commented 3 years ago

We have removed our payment terminals from the Edit screen. This cannot be implemented due to gateways limitations.