• Resolved darrenazz82

    (@darrenazz82)


    Hi there,

    When I activated Paypal under ‘Payment Methods via Woocommerce>settings>payments, entered the relevant details such ‘Merchant id, etc’ i was able to at least checkout (even though it did tell me the payment had failed)

    But soon after, it the website displayed an error “There has been a critical error on this website.”

    Going through all the plugs via deactivating them and the activating them i’ve whittled it down to the ‘paypal’ payment because everytime i turn the plug off, the site comes on..

    During this process of setting up the credentials i was informed that the API Credentials failed

    Any pointers would be great..

    Thanks

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @darrenazz82

    thank you for reaching out, we are here to help.
    I think you might be encountering 2 separate issues:
    1) failing payment
    2) critical error

    First of all, I should advise you to enable logging on to the plugin setting, this will give us much more details and will allow us to confirm what issue you are experiencing.

    Secondly, I would like to ask you to disconnect from PayPal and reconnect your PayPal account using the wizard. When you use the manual connection option there are certain processes in the background that might not be processed correctly and could lead to payment failures.

    Once you have done these 2 steps, I would like to see the logs that are created so we can find out the cause for the critical error. I am expecting this to be related to an issue that should show the same as reported in this thread: https://www.ads-software.com/support/topic/critical-error-whne-activating-woocommerce-paypal-payments/

    Until you have these logs, we cannot confirm this. Please let us know when you do.
    If you don’t feel comfortable sharing those details on a public forum, please open a ticket with our service desk. You can find the instruction for this here: https://paypal.inpsyde.com/docs/request-support/
    (please add the URL of this thread in the ticket as well)

    Kind regards,
    Joost

    Thread Starter darrenazz82

    (@darrenazz82)

    Hi,

    Thanks for the reply.

    This might sound silly but I currently use my PayPal business for another e-commerce website..

    If i use the wizard to connect to my business paypal account will it affect the current set up?

    I’m worried that it will have a knock-on effect to the current set up..

    Thanks

    Thread Starter darrenazz82

    (@darrenazz82)

    Just to note, I’m using the correct details to connect to my paypal business website and it still crashes…

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @darrenazz82

    Regarding the usage of your business account for multiple sites:
    It depends a bit on the application, but usually, it shouldn’t be a problem to connect the same PayPal account to multiples sites at the same time.

    It is recommended to create separate REST applications for each site you would like to connect to the account. You can find more details about the connection and how to create a new REST application here: https://paypal.inpsyde.com/docs/connect-a-paypal-account/

    The integrated onboarding will always create a new REST application when you connect via your PayPal login details, so you wouldn’t need to create an application if using the onboarding.

    The only caveat as of now would be the vaulting functionality and subsequently also the Subscriptions integration.
    PayPal currently only provides vaulted tokens for one connected site, causing other sites to not be able to use the feature.
    If you do not intend to use the vaulting feature though, then I don’t see any issues with it.

    Concerning your site crashes: you must have an error from the front end or something must show up in the fatal errors of your logs section. Can you please share those details with us? Without these details, we can’t say too much about it.

    Kind regards,
    Joost

    Thread Starter darrenazz82

    (@darrenazz82)

    Hi there,

    this is what the debug.log displays
    ————————————-

    [08-Oct-2021 13:44:11 UTC] PHP Fatal error:  Uncaught TypeError: Return value of WooCommerce\PayPalCommerce\Button\Assets\SmartButton::get_3ds_contingency() must be of the type string, null returned in D:\domains\t4dev.co.uk\httpdocs\wp-content\plugins\woocommerce-paypal-payments\modules\ppcp-button\src\Assets\class-smartbutton.php:611
    Stack trace:
    #0 D:\domains\t4dev.co.uk\httpdocs\wp-content\plugins\woocommerce-paypal-payments\modules\ppcp-button\src\Assets\class-smartbutton.php(693): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->get_3ds_contingency()
    #1 D:\domains\t4dev.co.uk\httpdocs\wp-content\plugins\woocommerce-paypal-payments\modules\ppcp-button\src\Assets\class-smartbutton.php(412): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->localize_script()
    #2 D:\domains\t4dev.co.uk\httpdocs\wp-content\plugins\woocommerce-paypal-payments\modules\ppcp-button\src\class-buttonmodule.php(73): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->enqueue()
    #3 D:\domains\t4dev.co.uk\httpdocs\wp-includes\class-wp-hook.php(303): WooCommerce\PayPalC in D:\domains\t4dev.co.uk\httpdocs\wp-content\plugins\woocommerce-paypal-payments\modules\ppcp-button\src\Assets\class-smartbutton.php on line 611
    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @darrenazz82

    yes, this is what we needed. The error “get_3ds_contingency()” is a known issue and very disturbing. We are about to release a hotfix (version 1.6.1) for this issue today or early next week.

    If you want to see how to use the plugin in the current situation, you might be able to get it to work when you turn off Card Processing and Vaulting. However, this only works for a select few instances of this issue.

    I have added your ticket to the bug ticket, so you should get updated once a solution is available.

    Kind regards,
    Joost

    • This reply was modified 3 years, 1 month ago by Syde Joost.
    Thread Starter darrenazz82

    (@darrenazz82)

    Hi @joostvandevijver,

    Thank you for the reply.

    Even after turning off the card processing/vaulting sadly didn’t work.

    I look forward to the update.

    Thanks
    Darren

    Thread Starter darrenazz82

    (@darrenazz82)

    Hi again,

    When i switch paypal accounts it works, but im doing nothing different at all…

    When i enter the details for the other account it doesn’t work…

    I’ve spoke to Paypal and i’ve entered in all the right details….

    Thread Starter darrenazz82

    (@darrenazz82)

    Actually ignore that last reply..i still have to deactivate “Enable PayPal Card”

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @darrenazz82

    Good news, the hotfix that should resolve the error “get_3ds_contingency()” was released yesterday. Please update the plugin to version 1.6.1 and see if this resolved the issue.

    Kind regards,
    Joost

    • This reply was modified 3 years, 1 month ago by Syde Joost.
    Thread Starter darrenazz82

    (@darrenazz82)

    This is great, thank you, the problem has been fixed with this update.

    Plugin Support Syde Joost

    (@joostvandevijver)

    Thank you for confirming the fix @darrenazz82 !

    If you are happy with the plugin and our support, please don’t hesitate to give us a review on WordPress to promote our plugins. It’s very much appreciated and will help us a great deal.

    Kind regards,
    Joost

    • This reply was modified 3 years, 1 month ago by Syde Joost.
Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Active PayPal crashes website (but not Admin)’ is closed to new replies.