Skip to content

Commit

Permalink
dev/financial#151 Paypal express validation fix on event
Browse files Browse the repository at this point in the history
extension of #18459
  • Loading branch information
eileenmcnaughton committed Oct 7, 2020
1 parent f8246b8 commit ca748f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CRM/Core/Payment/PayPalImpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -1132,8 +1132,13 @@ protected function isPaypalExpress($params) {
// The contribution form passes a 'button' but the event form might still set one of these fields.
// @todo more standardisation & get paypal fully out of the form layer.
$possibleExpressFields = [
// @todo - we think these top 2 are likely not required & it's still here
// on a precautionary basis.
// see https://github.com/civicrm/civicrm-core/pull/18680
'_qf_Register_upload_express_x',
'_qf_Payment_upload_express_x',
'_qf_Register_upload_express',
'_qf_Payment_upload_express',
'_qf_Main_upload_express',
];
if (array_intersect_key($params, array_fill_keys($possibleExpressFields, 1))) {
Expand Down

0 comments on commit ca748f0

Please sign in to comment.