You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now Spree::Gateway::Amazon#void and #cancel tell Amazon to refund order.total. This will not be correct if the order has been partially refunded already. Since Amazon allows refunding more than the amount captured it's possible that store could lose money this way.
It's unfortunate that Amazon does have a "refund everything that's left" endpoint, but since they don't I believe payment.credit_allowed is probably the correct thing to use, though my memory is a bit rusty on that.
The text was updated successfully, but these errors were encountered:
Related to #30
Right now
Spree::Gateway::Amazon#void
and#cancel
tell Amazon to refundorder.total
. This will not be correct if the order has been partially refunded already. Since Amazon allows refunding more than the amount captured it's possible that store could lose money this way.It's unfortunate that Amazon does have a "refund everything that's left" endpoint, but since they don't I believe
payment.credit_allowed
is probably the correct thing to use, though my memory is a bit rusty on that.The text was updated successfully, but these errors were encountered: