-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
dev/financial/#16 Paypal unreliable getting payment processor type #12007
Conversation
@mattwire makes sense - I guess the only worry would be if there is some case where it's not passed in - I looked at the Omnipay & see
which doesn't totally re-assure me that 'payment_processor_type_id' is always set (as opposed to ONE of them being always set) |
02543d0
to
534b20f
Compare
@mattwire I think you've added commits to this PR that belong in new PRs? |
@eileenmcnaughton Well spotted :-) I saw this (https://civicrm.stackexchange.com/questions/24316/paypal-pro-billing-address-state-province-country-not-being-passed) on stackexchange yesterday and got carried away with my fixing stuff... I think I'll be splitting this into 3 separate PRs. |
@mattwire I think @totten tried to enhance deprecated output at some point - but I think he was trying to do it within this function - is this a better place?
|
Probably this: https://chat.civicrm.org/civicrm/pl/cf1p7hgkkprp9kthkosq98qrer A few random thoughts:
|
Yes, I agree. I wasn't sure where to "dump" the function. Maybe
We don't actually log deprecated very much so I don't think it's a big change to convention.
Yes I know, I started digging and went off on multiple tangents. It needs splitting into a few PRs :-) |
7e07609
to
7e2b3f2
Compare
@eileenmcnaughton For the standard "getters" / php_notices please see #12038 |
7e2b3f2
to
de00d48
Compare
de00d48
to
4b8ca1c
Compare
@eileenmcnaughton This PR is now updated and should alleviate your previous concerns about |
c223b8d
to
ba3a0fb
Compare
Related issue: #12091 |
1c8513c
to
c72dc63
Compare
@mattwire some extra commits have snuck in |
@eileenmcnaughton Yes, I've been tracking #12091 as they are inter-related. If I drop the last commit perhaps we could get this PR merged and then refactor #12091 on top of the changes in this PR. As I see that issues with "payment_processor_type" not being set are still happening on that PR whereas they would not once this was merged. @cartbar |
Closing as now included in #12091 |
… type This is a partial reviewer's commit on the work Matt did in civicrm#12007 (comment) It adds the new function & new construct but I spotted an error in the usage of the function & so want to add the usage changes more slowly & carefully
Overview
The standard _paymentProcessor array does not include the type name (payment_processor_type) but does include the payment processor type id (payment_processor_type_id). However, paypal pro is expecting it to be there (it is passed in via a standard online contribution page).
Before
PHP notice on some payment submissions (eg. via webform_civicrm) and use of "non-standard" param.
After
No PHP notice and uses standard parameter so it works with all payment submissions that use standard methods to populate the payment processor array ($this->_paymentProcessor).
Related: #12091