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

Checkout fixes #23

Closed
wants to merge 14 commits into from
Closed

Checkout fixes #23

wants to merge 14 commits into from

Conversation

iugo-josh
Copy link
Contributor

Changes should fix issues #10, #17, #18 and #22.

This PR was branched from the code in PR #21, so please complete the review of that PR first.

There is an issue with config variable scope in Magento that was fixed in version 2.1.4: magento/magento2#7943 . Please ensure your Magento install has been updated before testing.

Remove Sandbox URL config option.
Always use Gateway URL config value.
Addresses feedback in issue #6
Changed the hidden form from being generated on the server side to
be generated on the client side instead. Added event listeners to
update the form as user details are modified.

Added scope settings to allow branding configuration to be changed
at the store level. Updated front end code to request data in the
correct scope.

Changes should fix issues #10, #17, #18 and #22.
Added the "Payment from Specific Countries" field to the config,
restricted to only allow selction of AU and/or NZ. This is a
built in Magento field that hides the payment option if a country
outside of the selected values is set for shipping.
Added error checking to stop orders from outside the selected
countries. This is primarily for billing address, but also checks
the shipping country in the cases where the magento logic fails.
Improved error checking functionality and error display in the
checkout.

Fixes issue #8
@iugo-josh
Copy link
Contributor Author

I've added a commit to address issue #8. This adds a config field to select allowed checkout countries, so please ensure this is set before testing.

The added field is a built in Magento field that has logic to hide the payment method when a shipping address outside of the selected options is chosen by the customer. This does not seem to be completely foolproof, as it is possible to make the method appear by first selecting an allowed country, then going back to the shipping step and changing the address to a different country. The commit contains additional checks that will pick this up and block the order however.

@iugo-josh
Copy link
Contributor Author

I've pushed new commits to this PR to merge in the recent config-fixes changes and address the feedback on issue #8. Please see issue #8 for details on how to clear old data that may impact testing of this.

@sam-flexi sam-flexi closed this May 2, 2017
@sam-flexi sam-flexi deleted the checkout-fixes branch May 2, 2017 05:53
@sam-flexi
Copy link
Collaborator

Removing this from the Magento 2 board as this is a reference to a PR and not an issue.

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