Tpay allows to make a refund using their panel. Once a full refunded is performed, a notification is sent, so the \CommerceWeavers\SyliusTpayPlugin\Payum\Action\Api\NotifyAction and \CommerceWeavers\SyliusTpayPlugin\Controller\PaymentNotificationAction classes might be helpful here.
Unfortunately, it seems we are unable to detect a partial refund, but we may ask Tpay team about that.
Small wins 🏆
[ ] Once a payment is fully refunded via Tpay panel, it should change the payment (and order) statuses to Refunded
Closing as while implementing #17 I've noticed refunding from the Tpay panel also changes the payment status, as while implementing #4 I've handled the CHARGEBACK status 🤠.
Tpay allows to make a refund using their panel. Once a full refunded is performed, a notification is sent, so the
\CommerceWeavers\SyliusTpayPlugin\Payum\Action\Api\NotifyAction
and\CommerceWeavers\SyliusTpayPlugin\Controller\PaymentNotificationAction
classes might be helpful here.Unfortunately, it seems we are unable to detect a partial refund, but we may ask Tpay team about that.
Small wins 🏆
Refunded