-
Notifications
You must be signed in to change notification settings - Fork 46
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
Error: Call to undefined method Omnipay\PayPal\RestGateway::set() #103
Comments
Actually I get the same error when using the contribution page directly: | Error: Call to undefined method Omnipay\PayPal\RestGateway::set() in CRM_Core_Payment_OmnipayMultiProcessor->setProcessorFields() (line 318 of /var/www/mysite/sites/default/files/civicrm/ext/nz.co.fuzion.omnipaymultiprocessor/CRM/Core/Payment/OmnipayMultiProcessor.php). |
I thought it might be because I was using PHP 7.0 but I am now using 7.2 and getting the same error. Using the contribution page, I see a nice Paypal button, click it, I get the popup briefly and the popup tries to load, then disappears replaced by an alert saying "the site is not configured correctly to take payments". In watchdog I see the above error. |
It implies that you have a field filed in in civicrm_payment_processor without a matching value in civicrm_payment_processor_type |
Hello! The fields array is Array ( [Clientid] => myemail+ikm_api1.gmail.com [Secret] => FBM93XJTWAsdfsdZSAB [] => AWkT50gtrA0iXnhXXlAFYAOXzvynv8B4pJTYjDdt44TAJwrSD ) So one of the array keys is blank |
hence $fn = "set{$name}" ending up as "set" |
I've wrapped that bit of code in an if statement checking that $name is not empty. Now I'm getting this error:
Which I'm wondering might be due to that thing with the blank array key not being passed? |
@hoegrammer so the cilentId is not an email in this instance - mine looks like AWzymvrczbgFT9CuhILzNXnXFyLXsxa8lacr_TJbOT4ytdRuaKnr73t1kOIdwbSTmnjTuajgKaiZCjqR |
& only 2 keys should be set in the payment_processor table username & password |
I generated a client id and secret which are in the right format (using paypal apps section rather than API) and I made a new payment processor and just filled in these fields. Then I made a contribution page and assigned the new processor. The contribution page won't load - I get the error It's passing "0" as the processor id I think:
but the id is 2. When I set the payment processor field of the contribution page back to the original processor this doesn't happen |
0 is the pay later processor - so you have 2 new entries in civicrm_payment_processor and when you look at the values for processor_id in civicrm_contribution_page it has the id of the live one of those 2? |
Yes |
|
OK - so that looks wrong - the processor id 11 is the test mode processor - the LIVE one should be the one saved into civicrm_contribution_page - presumably number 10? (it then picks up the test one when you are in test mode) |
Also this patch is required civicrm/civicrm-core#13798 |
Hi, I'm getting that error when using a webform. The processor is set to "Paypal Checkout"
The text was updated successfully, but these errors were encountered: