• Resolved lucytech

    (@lucytech)


    Paypal stopped working on my site. There is an error in the console on the /cart and /checkout page.

    This is my log error:

    2023-09-11T04:04:59-04:00 DEBUG POST https://api.paypal.com/v1/oauth2/token?grant_type=client_credentials Response Debug ID: fc9f9c0fe0822 Response: Array ( [code] => 200 [message] => OK ) 2023-09-11T04:05:00-04:00 DEBUG GET https://api.paypal.com/v1/customer/partners/K8SKZ36LQBWXJ/merchant-integrations/5UZM5L45KV2LS Response Debug ID: e885439c89484 Response: Array ( [code] => 200 [message] => OK ) 2023-09-11T04:05:02-04:00 DEBUG Loaded onbording URL from cache: sandbox-ppcp 2023-09-11T04:05:02-04:00 DEBUG Loaded onbording URL from cache: sandbox-express_checkout 2023-09-11T04:05:02-04:00 DEBUG GET https://api.paypal.com/v1/notifications/webhooks Response Debug ID: 595d895fb27ec Response: Array ( [code] => 200 [message] => OK ) 2023-09-11T04:06:19-04:00 DEBUG POST https://api.paypal.com/v2/checkout/orders Request Body: {"intent":"CAPTURE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"USD","value":"139.50","breakdown":{"item_total":{"currency_code":"USD","value":"119.60"},"shipping":{"currency_code":"USD","value":"19.90"},"tax_total":{"currency_code":"USD","value":"0.00"}}},"description":"","items":[{"name":"Large Black Glossy Posterboard (20x26-Inch)","unit_amount":{"currency_code":"USD","value":"2.99"},"quantity":40,"description":"Large Black Glossy Posterboard gives artists & crafters a high-tech looking media to work with. Use as a background for any","sku":"86108","category":"PHYSICAL_GOODS","cart_item_key":"26f306495f5ec6c50b4976850896aac4"}],"payee":{"merchant_id":"5UZM5L45KV2LS"},"shipping":{"name":{"full_name":""},"address":{"country_code":"US","address_line_1","postal_code":"09999"}}}],"application_context":{"user_action":"CONTINUE","shipping_preference":"GET_FROM_FILE","landing_page":"LOGIN","locale":"en-US","brand_name":"Hygloss Products Teacher Supplies: Discount Classroom Supplies | Arts & Crafts Store","return_url":"https:\/\/www.hyglossproducts.com\/?wc-ajax=ppc-return-url","cancel_url":"https:\/\/www.hyglossproducts.com\/checkout\/","payment_method":{"payee_preferred":"UNRESTRICTED"}},"payer":{"email_address":"","name":{"given_name":"","surname":""},"address":{"country_code":"US","address_line_1":"","address_line_2":"Apt 23","admin_area_1":"CA","admin_area_2":"","postal_code":"09999"},"phone":{"phone_type":"HOME","phone_number":{"national_number":"09090879879879"}}}} Response Debug ID: 63a9e0d73f08e Response: Array ( [code] => 201 [message] => Created )

    Do you need the line of code below for paypal to work b/c it was causing other errors on the site and I removed it?

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
    • This topic was modified 1 year, 6 months ago by lucytech.

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

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

    (@joostvandevijver)

    Hello @lucytech

    Thank you for reaching out to us, we are here to help.

    I tested the checkout pages of this site and am not seeing any issue. Our plugin seems to behave as expected and the logs, you copied, do not show any failure/error.

    Can you please help us to understand or reproduce this issue on your site? If you want, you could also open a private engagement to us, if that helps you to share details with us.

    At this moment, I am not seeing what the issue is you want our help with. Please let me know how to proceed.

    Kind regards,
    Joost

    Thread Starter lucytech

    (@lucytech)

    If you add a product to your cart.

    Then go to the /cart page. Change the amount and click update cart you see a console paypal error:

    It says it is coming from www.paypal.com... buttons?style.label=paypal&style.layout=vertical&style.color=gold&style.shape=rect&style.tagline=fa…
    
    js?client-id=AQpOFto…ng=venmo,paylater:3 unhandled_error
    
    {err: 'Error: Can not send postrobot_method. Target windo…cp-button/assets/js/button.js?ver=2.2.2:2:115330)', timestamp: '1694440974881', referer: 'www.hyglossproducts.com', uid: 'uid_3674c6f436_mtq6mde6mjy', env: 'production'}
    
    env: "production"
    
    err: "Error: Can not send postrobot_method. Target window is closed\n at https://www.paypal.com/sdk/js?client-id=AQpOFtoSuZKHpCHq2YkpDyEwdwcYktSuobhYkUR70Ll6U0Fvc9ArHp5nwbuurVH8UYJbWHp0SCy9E6rs&currency=USD&integration-date=2023-08-11&components=buttons,funding-eligibility,messages&vault=false&commit=false&intent=capture&disable-funding=card&enable-funding=venmo,paylater:3:146969\n at https://www.paypal.com/sdk/js?client-id=AQpOFtoSuZKHpCHq2YkpDyEwdwcYktSuobhYkUR70Ll6U0Fvc9ArHp5nwbuurVH8UYJbWHp0SCy9E6rs&currency=USD&integration-date=2023-08-11&components=buttons,funding-eligibility,messages&vault=false&commit=false&intent=capture&disable-funding=card&enable-funding=venmo,paylater:3:147026\n at e.try (https://www.paypal.com/sdk/js?client-id=AQpOFtoSuZKHpCHq2YkpDyEwdwcYktSuobhYkUR70Ll6U0Fvc9ArHp5nwbuurVH8UYJbWHp0SCy9E6rs&currency=USD&integration-date=2023-08-11&components=buttons,funding-eligibility,messages&vault=false&commit=false&intent=capture&disable-funding=card&enable-funding=venmo,paylater:3:77580)\n at https://www.paypal.com/sdk/js?client-id=AQpOFtoSuZKHpCHq2YkpDyEwdwcYktSuobhYkUR70Ll6U0Fvc9ArHp5nwbuurVH8UYJbWHp0SCy9E6rs&currency=USD&integration-date=2023-08-11&components=buttons,funding-eligibility,messages&vault=false&commit=false&intent=capture&disable-funding=card&enable-funding=venmo,paylater:3:146718\n at n.dispatch (https://www.paypal.com/sdk/js?client-id=AQpOFtoSuZKHpCHq2YkpDyEwdwcYktSuobhYkUR70Ll6U0Fvc9ArHp5nwbuurVH8UYJbWHp0SCy9E6rs&currency=USD&integration-date=2023-08-11&components=buttons,funding-eligibility,messages&vault=false&commit=false&intent=capture&disable-funding=card&enable-funding=venmo,paylater:3:74975)\n at n.then (https://www.paypal.com/sdk/js?client-id=AQpOFtoSuZKHpCHq2YkpDyEwdwcYktSuobhYkUR70Ll6U0Fvc9ArHp5nwbuurVH8UYJbWHp0SCy9E6rs&currency=USD&integration-date=2023-08-11&components=buttons,funding-eligibility,messages&vault=false&commit=false&intent=capture&disable-funding=card&enable-funding=venmo,paylater:3:75738)\n at Object.r [as enable] (https://www.paypal.com/sdk/js?client-id=AQpOFtoSuZKHpCHq2YkpDyEwdwcYktSuobhYkUR70Ll6U0Fvc9ArHp5nwbuurVH8UYJbWHp0SCy9E6rs&currency=USD&integration-date=2023-08-11&components=buttons,funding-eligibility,messages&vault=false&commit=false&intent=capture&disable-funding=card&enable-funding=venmo,paylater:3:139021)\n at t.value (https://www.hyglossproducts.com/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/assets/js/button.js?ver=2.2.2:2:143532)\n at Function.value (https://www.hyglossproducts.com/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/assets/js/button.js?ver=2.2.2:2:81790)\n at t.value (https://www.hyglossproducts.com/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/assets/js/button.js?ver=2.2.2:2:115330)"
    
    referer: "www.hyglossproducts.com"
    
    timestamp: "1694440974881"
    
    uid: "uid_3674c6f436_mtq6mde6mjy"
    
    Prototype: Object
    • This reply was modified 1 year, 6 months ago by Jan Dembowski. Reason: Formatting
    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @lucytech

    I asked around in my team, and someone encountered this situation before. There is a bit of a description in a GitHub issue we found, but it is old and not directly related to our plugin (but the theory makes sense)

    We would expect the theme & possibly a plugin to be causing an issue with the PayPal button. You may want to perform a full conflict test to rule out eventual issues with the theme or a different plugin. We recommend temporarily activating the default theme Storefront and disabling all other plugins except for?WooCommerce and?PayPal Payments to see if the behavior persists. Here’s a guide that explains the steps in more detail: How to test for conflicts.

    There is another theory that this could have been caused by a change we made for the Pay Later functionality. However, if this is the case, you would need to open a private thread with us, so we can provide you with a package that could potentially resolve this issue. However, I would start with the conflict tests to see if the issue remains.

    Pending your response.

    Kind regards,
    Joost

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello,

    Since we did not receive any response or follow-up questions from you, we will assume you got this working to your requirements. If you still have any more questions for us, please open a new thread, because we will mark this one as resolved.

    Kind regards,
    Joost

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘console error Error: Can not send postrobot_method. Target window is closed\n’ is closed to new replies.