Open dpritchett opened 10 years ago
Possibly because that gateway does not respond to credit, because nobody's asked for it before now :)
We have just encountered this issue as well when cancelling an order.
What should the behaviour be?
Should it just be a call in to refund_transaction in the SDK? I'll see about taking a look at this next week possibly.
@paultyng That looks like a bingo. A PR for that would be very welcome. I am currently more snowed under than the eastern seaboard of America rimshot
If the fix could kindly be back-ported to the 2-0-stable branch, my team and I would be most grateful.
@paultyng Did you submit a PR for this?
Sorry, never worked it out, we just decided to manually do it via PayPal UI and are working on switching providers as well.
Stacktrace: https://gist.github.com/dpritchett/c43a76bdc30acfa0e0cd
Spree refactor: https://github.com/spree/spree/commit/0caedaaf1aa1e8bc129dc5acd90dbd9c5303004b#commitcomment-5219536
It looks like Gateway is delegating
:credit
to Paypal and that's blowing up. Not sure exactly howdelegate_belongs_to
works, but it wasn't throwing errors before that was changed to a plaindelegate
.