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

Check if deprecated method_type if overridden #2093

Merged
merged 1 commit into from
Jul 17, 2017

Conversation

jhawthorn
Copy link
Contributor

method_type has been deprecated in favour of the more descriptive partial_name. There is a deprecation notice when method_type is called, but there isn't when method_type is overridden (which is very likely for
custom gateway implementations).

This commit checks if method_type has been overridden, and if so, uses that instead of the default value of partial_name.

This fixed both solidus_gateway and solidus_braintree on latest master (and provided warnings of how best to move forward), so I imagine it is likely to be helpful for users.

method_type has been deprecated in favour of the more descriptive
partial_name. There is a deprecation notice when method_type is called,
but there isn't when method_type is overridden (which is very likely for
custom gateway implementations).

This commit checks if method_type has been overridden, and if so, uses
that instead of the default value of partial_name.
@jhawthorn jhawthorn requested a review from tvdeyen July 14, 2017 21:02
@jhawthorn jhawthorn added this to the 2.3.0 milestone Jul 14, 2017
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

WOW👌🏻

Copy link
Contributor

@mamhoff mamhoff left a comment

Choose a reason for hiding this comment

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

Nicely done!

@jhawthorn jhawthorn merged commit 8a72114 into solidusio:master Jul 17, 2017
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.

3 participants