mollie / spree-mollie-gateway

Mollie payments for Spree Commerce.
https://www.mollie.com
16 stars 23 forks source link

Add order refund for reimbursements #61

Closed Oldharlem closed 5 years ago

Oldharlem commented 5 years ago

Refunds are an important part of the e-Commerce process.

This PR includes refunding an x amount via the payments/id/refunds api when a regular refund is issued. This will not work for pay after delivery payment options.

When processing a return by reimbursing a reimbursement with reimbursement action refund the orders/orderId/refunds endpoint will be used. This PR will find the items in the mollie order that are returned and issue a refund based on the return items in the reimbursement.

Oldharlem commented 5 years ago

Hi @vernondegoede,

Any reason the PR isn't accepted yet? Using our own fork now and would prefer using the original :-)

vernondegoede commented 5 years ago

Sorry for the delay. I'll take a look later this week.

Oldharlem commented 5 years ago

@vernondegoede please review so we can merge :)