Sylius supports a simple refund mechanism, so only a full refund can be performed. From what I see, the simplest way is to add a callback on the refund transition in which we will execute the Payum's Refund request.
Small wins 🏆
[ ] After refunding a payment via Sylius Admin Panel, a refund request should be sent to Tpay (a payment status in Tpay should be Refunded)
keep in mind that only full refund changes a payment status in Tpay, partial refund (even if amounts are equal) never changes a status in Tpay – we need to use here a correct endpoint
Sylius supports a simple refund mechanism, so only a full refund can be performed. From what I see, the simplest way is to add a callback on the
refund
transition in which we will execute the Payum'sRefund
request.Small wins 🏆
Refunded
)Ref:
Hint 💡:
PayPal
does not support refunds