mollie / spree-mollie-gateway

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

only finalize shipments when order is paid #25

Closed Oldharlem closed 6 years ago

Oldharlem commented 6 years ago

By design the plugin completes the order when a payment method is selected. De facto the spree system finalises the order when the order transitions to complete. Part of this finalisation is finalising shipments. This means stock is deducted.

Upon registering a complete payment, the mollie gem finalises the order again which results in another stock reduction.

This PR prevents stock reduction until the order has been paid

vernondegoede commented 6 years ago

Thanks (again) Fab! 💪