• Resolved kayahnung

    (@kayahnung)


    hi guys, i’m unable to make payments on cart or single product page with your plugin. the error: “Something went wrong. Please try again or choose another payment source”. there is already a thread about that here…

    the dev/console shows an the error: create_order_error JSON.parse: unexpected character at line 1…

    i checked the webhook in paypal, the created one from your plugin is: https://example.com/wp-json/paypal/v1/incoming

    any ideas? thanks in advance

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @kayahnung,

    Issues that may seem similar can have very different causes, so every case must be looked at individually.
    To clarify, the button in the checkout is working for you, only the express buttons on the cart or single product page don’t?
    Could you please share with us a link to an example product so we could take a closer look at this?
    Also, please enable “Logging” in the plugin settings to see if creating an order this way produced a logged error.

    Have you tried ruling out a plugin conflict by disabling all other plugins except for WooCommerce and PayPal Payments? Also, activating the Storefront helps to rule out a potential theme or custom code conflict.
    Thanks!

    Kind regards,
    Niklas

    Thread Starter kayahnung

    (@kayahnung)

    thanks for your fast reply.

    To clarify, the button in the checkout is working for you, only the express buttons on the cart or single product page don’t?

    yes, exactely.

    the buttom on checkout is also the express button.

    the site is in a very very early process, first we wanna check a stable payment plugin.

    no other plugins, storefront and logging enabled!

    thanks

    • This reply was modified 3 years ago by kayahnung.
    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @kayahnung,

    Thanks for sharing the link.
    I found the problem and have a temporary workaround for you. Please give it a try with this package:
    https://drive.google.com/uc?export=download&id=15gFpfw55CyfKcC3Oyos041aqVYYwKUv5
    Our next plugin update is scheduled for sometime next week and should include a fix for the issue.
    But please let us know how that works for you. Thanks!

    Kind regards,
    Niklas

    Thread Starter kayahnung

    (@kayahnung)

    thanks niklas, works like a charm.
    so you knew about the problem?
    thanks for the very fast support and the solution!

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Yes, it’s a known problem. Sometimes we can help a bit faster, sometimes it takes a bit longer. But we aim to resolve all issues eventually!

    You can find some more details about the issue here (it’s sparse though): https://github.com/woocommerce/woocommerce-paypal-payments/issues/344
    We don’t know yet what configuration exactly leads to the error, but it should be resolved anyway with the upcoming update.

    In the browser dev tools (F12) Network tab, you may notice the fatal error when you check ?wc-ajax=ppc-create-order after clicking the button. (when using the regular plugin version)

    Since the fix works for you, I will mark this thread resolved.
    But for any further questions, feel free to reach out anytime.

    Kind regards,
    Niklas

    Thread Starter kayahnung

    (@kayahnung)

    ok thanks for the explanation.
    sorry, but:

    1. if you cancel the express checkout on single product site, the product goes into the cart. is that the right behavior?

    2. on cart and single product site, you can’t collapse/see the order details in the paypal window top right, but on checkout you can?!

    3. ability for uploading a logo to the paypal page would be nice.

    thanks again!

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    No Worries ??
    1. Yes, that’s intentional. The order is created from the cart before being sent to the API via express checkout.
    2. The details should be visible from everywhere. Generally, the line items may get dropped when there is a mismatch in the totals. Are you adding any fees or extra shipping?
    3. For now, you can use a filter like this to add a gateway icon of your choice: https://gist.github.com/InpsydeNiklas/9b384c86c4127a7bffc5446c328a647c
    We will likely add a native feature for this when we revamp the settings page down the road, so it will take some more time. The filter should work fine though.

    Kind regards,
    Niklas

    Thread Starter kayahnung

    (@kayahnung)

    hi niklas, thanks again.

    1. okay
    2. no additional fee and no shipping, only tax. on checkout page i see the details.
    3. maybe you missunderstood. i don’t wanna change the gateway icon via the woocommerce_gateway_icon filter. i was asking to upload an logo to the paypal page for “branding”. i saw that a few times. or do i have to do that in my paypal account?

    cheers, kay

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Regarding the logo, yes I did misunderstand the question. We have a feature request about this in the backlog, but I can’t tell if or when that’s going to happen. If it does, then likely around the same time as the mentioned revamping of the settings page.

    But we’d like to look further into the behavior with the line details.
    Could you please send us a copy of your WooCommerce system report in a private message as described here?:
    https://paypal.inpsyde.com/docs/request-support/
    Thanks!

    Kind regards,
    Niklas

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘no payment on cart – create_order_error’ is closed to new replies.