Skip to content

Retry failed payment creates not needed canceled payment entry for the order #311

@JakubCzech-pl

Description

@JakubCzech-pl

Description

Currently when payment fails while placing order Sylius creates new payment entity (first has status failed and the new one has status new).

After payment failure in checkout customer lands on payment failure page (route: commerce_weavers_sylius_tpay_payment_failed)
From there customer can retry payment which happens in \CommerceWeavers\SyliusTpayPlugin\Controller\RetryPaymentAction

The issue is that there the payment with status new is being cancelled and the new payment is created which causes that order has 4 payments - failed, canceled and new (as cancelation of the payment also creates new one through state machine callback)

Goal

To verify if the cancelation of the method has to take place. The goal is to not have 3 payments after clicking retry payment, but use the new one that has been created after first failure

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions