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

Call validatePaymentInstrument instead of validateCreditCard #88

Closed
wants to merge 1 commit into from

Conversation

mattwire
Copy link
Collaborator

validateCreditCard should not be called directly, but should be called via the overrideable base class in CRM_Core_Payment_Form::validatePaymentInstrument.

This was breaking stripe via webform as we don't validate credit card fields for stripe (a token is passed instead).

…. validateCreditCard is called by the base implementation of validatePaymentInstrument in CRM_Core_Payment_Form
@colemanw
Copy link
Owner

@eileenmcnaughton does this look right to you?

@eileenmcnaughton
Copy link
Contributor

Yes it does - although most of that function is redundant once you are doing that. I think you are at the point though where you should cut a release that does not officially support older versions on CiviCRM. I can speak to the fact that is correct with 4.7. It's been over a year since I looked at any earlier versions and you risk breaking compatibility with earlier versions as you adapt to 4.7. Removing formal support gets you off the hook for that (& people can use the current version of webform for those older versions so they have not missed out)

@mattwire
Copy link
Collaborator Author

Closed in favour of #90 (no changes, just branch name)

@mattwire mattwire closed this Oct 29, 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