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

Add affirm gateway partial #25

Merged
merged 5 commits into from
Jan 4, 2019
Merged

Conversation

kennyadsl
Copy link
Member

Add a specific partial for Affirm payment sources.

This is needed after solidusio/solidus#2513

@kennyadsl kennyadsl self-assigned this Jan 3, 2019
@kennyadsl kennyadsl force-pushed the kennyadsl/add-gateway-partial branch 2 times, most recently from 8b34189 to a698145 Compare January 3, 2019 14:26
This allows to use solidus support stuff into the engine file.
This is only used in latest versions of solidus and would
raise an exception if this is not present.
@kennyadsl kennyadsl force-pushed the kennyadsl/add-gateway-partial branch 3 times, most recently from 210446c to 970ee57 Compare January 3, 2019 16:40
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.

I would prefer to have the Solidus version check right in the engine where we require the hack, but this is a personal preference. This works perfectly without this change. Thanks for making this fix 👌

@kennyadsl kennyadsl force-pushed the kennyadsl/add-gateway-partial branch from 970ee57 to 074b131 Compare January 4, 2019 09:52
This basically dynamically adds some methods on SolidusAffirm::Checkout
class.

Those methods are called by the order show API endpoint in Solidus
core prior to 2.6. After that version we'll use a dedicated partial
for each payment source.

We didn't notice this issue since the enpoint were not tested into
this extension.
@kennyadsl kennyadsl force-pushed the kennyadsl/add-gateway-partial branch from 074b131 to 3a76db2 Compare January 4, 2019 10:15
@kennyadsl kennyadsl merged commit dab3ce0 into master Jan 4, 2019
@kennyadsl kennyadsl deleted the kennyadsl/add-gateway-partial branch January 4, 2019 10:45
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.

2 participants