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

Membership form address fields for payment processors #13802

Merged
merged 1 commit into from Mar 14, 2019

Conversation

mattwire
Copy link
Contributor

@mattwire mattwire commented Mar 12, 2019

Overview

Actually use the values processed by the function processBillingAddress..

Before

If county or country fields are not set then the entire list of counties/countries are passed as an array in the PHP form values.

After

We use the standard functions for parsing/validating address parameters.

Technical Details

$this->processBillingAddress() acts on $this->_params but we've already assigned it to $formValues so ignore the result...

Comments

testSubmitPayLaterWithBilling covers this

@civibot
Copy link

civibot bot commented Mar 12, 2019

(Standard links)

@civibot civibot bot added the master label Mar 12, 2019
@eileenmcnaughton
Copy link
Contributor

@mattwire this makes sense to me - by getting $formValues from $this->_params a few lines later the standardised address wrangling is already done and a form-specific-handling is not needed. I stepped through in the test & it looks good. Merging

@eileenmcnaughton eileenmcnaughton merged commit 779cb58 into civicrm:master Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants