Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Dmytro – WPMU DEV Support

    (@wpmudevsupport16)

    Hello @maijx,

    First, please make sure that the Sandbox Client ID, Sandbox Secret, Live Client ID and Live Secret Key are correct, and do not have any extra white space characters. Correct these details if needed, and save them in Settings >> Payments.

    If the issue persists, please try removing the PayPal field from the form, save the changes, and then test the form after adding it back.

    If that doesn’t help, login to the PayPal Developer Dashboard for the connected PayPal account, and check if there are any error responses inside Event Logs >> API Calls section after you try to make a payment.

    In order to view the response, just click on the Debug ID:
    https://prnt.sc/NWbH1NDwzJCi

    and see what’s inside the Issue and Description rows there: https://prnt.sc/LJIFeUHzjR9U

    Please let us know what are the responses/errors there.

    Best Regards,
    Dmytro

    Deleting my comment, as it turns out my issue is different from the original poster’s.

    • This reply was modified 5 months, 2 weeks ago by masonwolf. Reason: I have a different issue than the original poster. Deleting my comment
    Thread Starter maijx

    (@maijx)

    @wpmudevsupport16

    Everything is fine in paypal and no matter if it’s sandbox or live. even when i click on paypal button and close window without having any interaction with paypal, i get that error: Error! Something went wrong when verifying the payment

    Thread Starter maijx

    (@maijx)

    Also here is one of the errors from console:

    js?client-id=AVHHvlL…_US&debug=true:4582 respond::err E() 


    Error: Expected redirect url
    at Object.E (buttons?env=sandbox&…t=false:1587:116206)
    at js?client-id=AVHHvlL…&debug=true:4315:40
    at _proto.dispatch (js?client-id=AVHHvlL…S&debug=true:527:52)
    at _proto.then (js?client-id=AVHHvlL…S&debug=true:564:22)
    at Object.handler (js?client-id=AVHHvlL…&debug=true:4314:29)
    at js?client-id=AVHHvlL…&debug=true:4620:32
    at ZalgoPromise.try (js?client-id=AVHHvlL…S&debug=true:680:37)
    at handleRequest (js?client-id=AVHHvlL…&debug=true:4618:42)
    at receive_receiveMessage (js?client-id=AVHHvlL…&debug=true:4707:72)
    at js?client-id=AVHHvlL…&debug=true:5006:41
    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @maijx

    Thank you for response!

    The “Expected redirect URL” in error suggests that there may possibly be some conflict with some other implementation of PayPal on site. Do you have any other plugin or custom code on site that is using PayPal (even if it’s unused/not configured feature)?

    If yes – could you try to disable it temporarily to see if Forminator form starts working then? If it does, what is that other plugin?

    If you don’t have any such plugin, is there by any chance Google’s reCaptcha added to the form?

    Kind regards,
    Adam

    Thread Starter maijx

    (@maijx)

    @wpmudev-support8

    No there is no recaptcha in form as you can see here

    https://i.postimg.cc/NFHFs7Pb/aaaa.png

    https://i.postimg.cc/wj0J3zkr/image.png

    I disabled woocommerce paypal plugin but still the same problem.

    recreated the form the problem exist.

    js?client-id=ARej0lE…_US&debug=true:4582 respond::err E()  


    Error: Expected redirect url
    at Object.E (buttons?env=producti…t=false:1587:116206)
    at js?client-id=ARej0lE…&debug=true:4315:40
    at _proto.dispatch (js?client-id=ARej0lE…S&debug=true:527:52)
    at _proto.then (js?client-id=ARej0lE…S&debug=true:564:22)
    at Object.handler (js?client-id=ARej0lE…&debug=true:4314:29)
    at js?client-id=ARej0lE…&debug=true:4620:32
    at ZalgoPromise.try (js?client-id=ARej0lE…S&debug=true:680:37)
    at handleRequest (js?client-id=ARej0lE…&debug=true:4618:42)
    at receive_receiveMessage (js?client-id=ARej0lE…&debug=true:4707:72)
    at js?client-id=ARej0lE…&debug=true:5006:41

    one more thing that i noticed. when i click on paypal button and close it immediately i can not reopen it again without page reload. and i get this error: Third-party cookie will be blocked. Learn more in the Issues tab.

    Thread Starter maijx

    (@maijx)

    and even after sending success payment from sandbox to site i get that error:Error! Something went wrong when verifying the payment

    here it is https://i.postimg.cc/zfL068WW/Screenshot-2024-06-10-151421.png

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @maijx

    Thanks for response!

    Based on the screenshots, it seems that the form has only a PayPal and currency fields on it. I just set such form on my own test setup from scratch and tried to replicate the issue but to no luck – it all works fine for me.

    This would mean that either I’m testing something wrong (e.g. does it make any difference for you which of the available PayPal payment methods you use?) or it’s specific to some of the PayPal field setting or it’s site-specific.

    We’ll need to look into it closer so can I ask you to:

    1. test and let me know if the very same thing happens regardless of which of the available payment methods you use or only one of them (if one of them – which one)?

    2. share the export of the form in question?

    Note: export of the form will NOT include your PayPal crednetials/API keys and will NOT include any submitted data – those will safely stay on your site and we don’t need them anyway.

    To share export of the form:

    – go to the “Forminator -> Forms” page and click on a little “gear” icon next to the form in question
    – use “Export” option, copy given code and put it at https://pastebin.com
    – then include link to that paste in your response below.

    Kind regards,
    Adam

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @maijx

    We didn’t hear back from you for quite some time already so I’m marking this as resolved for now.

    If you have any additional questions, let us know and we’ll be happy to get back to you.

    Best regards,
    Adam

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.