Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Spree::Payment processing methods to use strict creation #46

Conversation

sauloperez
Copy link

Closes openfoodfoundation/openfoodnetwork#5449

A failure in creating the refund payment should fail loudly so we see it in Bugsnag. Check out the original commit message for more details.

* In a few cases during testing the processing methods were
  silently returning objects that were not valid, causing strange
  behaviour in places further removed from pricessing. This change
  makes it so that if there are issues with the object creation they
  are immediately obvious.

  This seemed like a safe change because I believe under normal
  circumstances these methods should never fail.
@sauloperez sauloperez self-assigned this Jun 19, 2020
@sauloperez
Copy link
Author

mmm could it be that the 2-1-stable has a broken build? 🤔

Copy link

@luisramos0 luisramos0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think we should do this. We are on for ofn openfoodfoundation/openfoodnetwork#4826. No more spree changes imo.

We should bring the full processing file to ofn and make the change and refactoring we want.

@sauloperez
Copy link
Author

Great! that was the other option but this felt quicker 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants