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

Rails 6 1 #100

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Rails 6 1 #100

wants to merge 13 commits into from

Conversation

Oldharlem
Copy link
Collaborator

Patches deprecated update_attributes method and introduces a new appraisal for rails 6.1

rvanlieshout and others added 11 commits August 8, 2021 22:41
A client had invalid credentials in the Gateway settings which resulted in a Mollie::RequestError. Let's only create a Mollie customer when the gateway is active.

Using an ensure_mollie_customer after_save should also create Mollie customers for users that have been created in the time that is was inactive
…ribute

Since the safe navigation operator does raise on undefined methods we should use try instead.
I was missing another piece of code from the mollie gateway gem. 
Even though I did some edit in spree views, I'm still using there `order_just_completed?` method to display a thank you message.
This method needs `flash['order_completed']` to be true and is normally set in the checkout update action: 

https://github.com/spree/spree/blob/master/frontend/app/controllers/spree/checkout_controller.rb#L43

So, I'm guessing, setting it here to true would be a good thing to do. 

Wdyt?
This little PR fixes issue #95
@rvanlieshout
Copy link
Contributor

You beat me to it @Oldharlem

👍

@Oldharlem
Copy link
Collaborator Author

You beat me to it @Oldharlem

👍

Haha pure necessity 💯

@Kulgar
Copy link
Contributor

Kulgar commented May 24, 2022

And... When this PR will be merged?!
Currently, Mollie Payment Gateway is unusable with latest Spree and Rails 6.1...

Thanks for the PR @Oldharlem

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

Successfully merging this pull request may close these issues.

4 participants