문제

Is it possible to check programmatically if an given invoice can be refunded online via a payment gateway like Paypal/Braintree?

도움이 되었습니까?

해결책

For anyone having a similar requirment my solution was to check the following:

  • Can the invoice be refunded ($invoice->canRefund())
  • Does the invoice have an transaction id ($invoice->getTransactionId())

Please note, that this doesn't verify if the gateway does support online refunds (e.g. Paypal/Braintree supports it)

I didn't find any other solution and I'm still open for alternatives.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top