lem1298
Forum Replies Created
-
Hi Kasia,
sorry for not getting back earlier.
Unfortunately, the update had no effect on the plugin behaviour in combination with the mu-plugin on my end. Everything is still as described in my earlier post.
If there are no more ideas for any workarounds, I guess I’ll just have to wait for the official plugin feature to support this (any news on that?), and I can understand if you close this ticket without any solution (yet).
Kind regards,
LinusHi @wpmudev-support9 ,
thanks once more for your help.
Yes, I am certain that I am using the Live account. This is also underlined by the fact, that the PayPal popup opens the regular PayPal domain (not the sandbox.paypal.com subdomain) as soon as I remove the Code Snippet.
I will try updating the plugin as soon as it becomes available and report back.
Best,
LinusHi Jonathan,
Thanks for your quick response!
Without further reviewing the Code Snippet provided earlier (my PHP knowledge is quite limited anyways), I was assuming that Forminator would append the
client-id
to the request automatically, given that the PayPalclient-id
gets configured in the Forminator backend already. Hardcoding the id into the code snippet seems very counterintuitive to me. Also, I was able to detect in the developer tools that Forminator does in fact seem to append the id to the GET request (see earlier post).Nevertheless I followed your suggestion and sadly have to report, that it has exactly the same outcome as without client-id hardcoded into the URL.
Happy for any other ideas or maybe even news on an officially supported feature as hinted by Kris earlier.
Thanks again,
LinusHi Kasia,
First of all, I forgot to thank you for trying to fix my issue in the earlier post. So this time: Thank you very much!
Let me give you some more details of what I tried, and what is happening.
I added the Code Snippet provided by you to the mu-plugins folder. Before doing so, I exchanged the line 53
$paypal_src = @ $forminator_cform->paypal_script_argument( 'https://www.paypal.com/sdk/js' );
to
$paypal_src = @ $forminator_cform->paypal_script_argument( 'https://www.paypal.com/sdk/js?disable-funding=credit,bancontact,blik,eps,giropay,ideal,mercadopago,mybank,p24,sepa,sofort,venmo' );
.When using the Forminator Form, the other buttons are indeed gone! However, I can’t finish the payment using either the PayPal or Credi/Debit card button (the only ones not disabled via Script above). When clicked, the default PayPal popup opens briefly before closing again after a second. The Forminator Form shows the following error after the closure: Error! Something went wrong when verifying the payment
When I look at the developer tools of my browser, I can see that a GET request to PayPal is made initially
https://www.paypal.com/sdk/js?disable-funding=credit,bancontact,blik,eps,giropay,ideal,mercadopago,mybank,p24,sepa,sofort,venmo&client-id=[My-Id-Here]
However, all following requests are sent to sandbox.paypal.com (even though I am 100% sure I am in Live Mode) before the popup closes eventually and the error mentioned above is shown.
Any ideas what could be going on?
Thanks again,
LinusHi Kasia,
Sorry for not responding earlier.
Unfortunately, this didn’t quite solve my issue. While the other payment options are indeed gone using the snippet, now the PayPal window opens only momentarily before closing again and Forminator Form showing a payment error in Live mode.
Will try to follow up with more details soon…
Kind regards,
LinusHi there,
Thank you very much for checking!
I am hopeful that the conflict is resolved, as PayPal is now officially offering the option to disable certain funding sources via API (please see link in inital post), but your developers will know better than I do.
If I may add the wish to have the ability to disable all kinds of funding sources and not only a single one (just like you have the option for certain credit cards already), this would be amazing. Thank you so much for your continued support on this already great plugin!
In the meantime, there is no interim solution via mu-plugins etc that you know of by any chance? I guess I could add the
disable-funding
parameter to thepaypal_script_argument
function infront-render.php
(l. 497), but I am afraid of screwing things up. Especially if the topic at hand is as sensible as a PayPal transaction.Kind regards,
LinusForum: Plugins
In reply to: [Caldera Forms - More Than Contact Forms] CSS: Toggle Switch Background ColorSOLUTION
All I needed was a “!important” at the end of the line. Now everything works with this tiny bit of code. Maybe this helps someone else…
.cf-toggle-switch .btn-success { color: #fff; background-color: #5D70B5 !important; border-color: #5D70B5 !important; }