Forum Replies Created

Viewing 15 replies - 1 through 15 (of 23 total)
  • Thread Starter chchch

    (@goch)

    The app associated with these credentials, however, is not visible in your dashboard.


    yes, it’s weird that the app isn’t showing in the dashboard when doing the automatic process.
    That would be handy, as this would allow us to see the webhooks events in the dashboard (https://developer.paypal.com/dashboard/webhooks/sandbox).
    They dont show up there except if we create a sandbox app and manually manage the sandbox credentials. That should be mentioned in the doc somewhere.

    Thread Starter chchch

    (@goch)

    I really made sure to connect with a different sandbox account (I cleaned the cache/cookies, and used a different browser), but I’m affraid I still have the same 422 error:

    {
    "additional_properties": {},
    "body": {
    "name": "UNPROCESSABLE_ENTITY",
    "details": [
    {
    "issue": "ORDER_ALREADY_COMPLETED",
    "description": "The order cannot be patched after it is completed."
    }
    ],
    "message": "The requested action could not be performed, semantically incorrect, or failed business validation.",
    "debug_id": "f689285c03b11",
    "links": [
    {
    "href": "https://developer.paypal.com/api/rest/reference/orders/v2/errors/#ORDER_ALREADY_COMPLETED",
    "rel": "information_link",
    "method": "GET"
    }
    ]
    },
    "duration_time": "xxxxxx",
    "header": {
    "APPLICATION_ID": "APP-80W284485P519543T",
    "Access-Control-Expose-Headers": "xxxxxx",
    "BORDER-IP": "xxxxxx",
    "CALLER_ACCT_NUM": "S2ZG3BZMDVUCL",
    "Date": "Tue, 17 Dec 2024 10:42:34 GMT",
    "Keep-Alive": "xxxxxx",
    "PROCESSING-IP": "xxxxxx",
    "PayPal-Gateway-Metadata": "xxxxxx",
    "SERVER_INFO": "xxxxxx",
    "Server-Timing": "xxxxxx",
    "paypal-debug-id": "f689285c03b11"
    },
    "status": 422
    }

    Anything else you can think of / I could check?

    Thread Starter chchch

    (@goch)

    ok, more info:
    I also have some 422 errors in the paypal sandbox logs, like this one:

    {
    "additional_properties": {},
    "body": {
    "name": "UNPROCESSABLE_ENTITY",
    "details": [
    {
    "issue": "ORDER_ALREADY_COMPLETED",
    "description": "The order cannot be patched after it is completed."
    }
    ],
    "message": "The requested action could not be performed, semantically incorrect, or failed business validation.",
    "debug_id": "f7867825a71d1",
    "links": [
    {
    "href": "https://developer.paypal.com/api/rest/reference/orders/v2/errors/#ORDER_ALREADY_COMPLETED",
    "rel": "information_link",
    "method": "GET"
    }
    ]
    },
    "duration_time": "xxxxxx",
    "header": {
    "APPLICATION_ID": "APP-80W284485P519543T",
    "Access-Control-Expose-Headers": "xxxxxx",
    "BORDER-IP": "xxxxxx",
    "CALLER_ACCT_NUM": "S2ZG3BZMDVUCL",
    "Date": "Tue, 17 Dec 2024 08:51:13 GMT",
    "Keep-Alive": "xxxxxx",
    "PROCESSING-IP": "xxxxxx",
    "PayPal-Gateway-Metadata": "xxxxxx",
    "SERVER_INFO": "xxxxxx",
    "Server-Timing": "xxxxxx",
    "paypal-debug-id": "f7867825a71d1"
    },
    "status": 422
    }

    • This reply was modified 3 months, 1 week ago by chchch.
    Thread Starter chchch

    (@goch)

    after disconnecting/reconnecting a couple of times i ended up not having the errors above anymore but I now have those:

    2024-04-14T15:09:18+00:00 Warning Failed to create order. PayPal API response: [Error] Unknown error while connecting to PayPal. Status code: 0.

    2024-04-14T15:09:18+00:00 Error Order creation failed: [Error] Unknown error while connecting to PayPal. Status code: 0.


    So it seems that I have some failed payments. It’s annoying that the error messages do not have more details..

    Thread Starter chchch

    (@goch)

    That’s fixed somehow. might have been a cache issue or something.
    again, thanks for the quick support.
    setting up plugin was easy and everything seems to work well. I’ll write a review shortly.

    Thread Starter chchch

    (@goch)

    thank you for your quick and detailled reply.

    It seems that selecting “Credit or debit card” in the “Disable Alternative Payment Methods” option only remove the standard card button when the advanced card processing is not active.

    If I use the advanced card processing, i still have the “credit or debit card” button when I select ‘paypal’.
    Is that a bug that this option isn’t taken into account in that case?
    Is there a way to remove the “credit or debit card” button that is in under paypal when we have the advanced card option active ?

    Thread Starter chchch

    (@goch)

    cool, thank you for the quick and detailled reply!

    Thread Starter chchch

    (@goch)

    oh, perfect. i was looking at the wrong place then.
    thanks!

    Thread Starter chchch

    (@goch)

    Hi Mirko,

    Thanks for your reply.

    Looking at your images it seems to me that you are looking at the checkout page instead of looking at a confirmed order.

    Please read the information below carefully as I added new information, and rewrote the steps to reproduce in more detail.

    Steps to reproduce the bug:

    – use the theme “storeFront
    – activate only 2 plugins : woocommerce and WooCommerce Stripe Gateway (you can use another gateway if you want)

    – in the woocommerce general settings:
    . enable tax rate and calculation
    . set the number of decimals to 0

    – in the TAX settings:
    . enable Yes, I will enter prices inclusive of tax
    . DO NOT check “Round tax at subtotal level, instead of rounding per line”

    – set your payment in test mode
    – go to the shop, and purchase something with some taxes.
    do all the checkout process until the end, up to the “Order received” confirmation

    – on the backend, go to woocommerce->orders and select the order you just did to see the details.
    Here is what I have : https://ibb.co/ySKXWZX

    as you can see, everything (prices/taxes) is rounded. all good.

    – go back to the general settings, and set the number of decimals to 2

    – refresh the oder page you were looking at previously. I have that : https://ibb.co/K9xWjPG

    as you can see the vat is not correctly updated, it is still rounded. this is a bug. woocommerce has stored the order total taxes as rounded.

    Charles

    Thread Starter chchch

    (@goch)

    Hi,

    do you confirm the bug?
    this is quite an important one. other plugins are using that (wrong) vat saved value.

    thanks,
    Charles

    • This reply was modified 3 years, 5 months ago by chchch.
    Thread Starter chchch

    (@goch)

    Hi,
    I’m not sure where/how to find them in phpMyAdmin but if you could give me more details about how to do it I’m happy to have a look.

    But here are more finding regarding woocommerce and the rounding of the tax :

    – If I have 2 decimals in the woocommerce settings, create an order A, and look at it, then everything is fine : https://ibb.co/k40Xs2V

    – If I switch to 0 decimals and create a new order B, then I can see that tax is rounded if I look at it (that’s expected) : https://ibb.co/C6HbwX0

    But if I now switch back to 2 decimals and look again at that previous order B, I see that the tax value stays rounded there (not in the first line, but in the main table): https://ibb.co/yV0q9dY

    This is easy to reproduce.
    So it seems that woocommerce’s decimals setting affect some stored tax amount?

    googling about it I found this old github that states “WooCommerce stores tax subtotals rounded with the same number of decimals that are set for the store” and have a fix for it (might be outdated).

    However, as woocommerce only have a wrong vat in the main table but still shows the correct amount of tax on the first line (cf latest screenshot) then the correct tax amount must still stored correctly somewhere?

    • This reply was modified 3 years, 6 months ago by chchch.
    Thread Starter chchch

    (@goch)

    ah, no, my bad, sorry.
    the full price with the tax included is 29€. so woocommerce is right.
    forget my latest post.

    But if you look at that order, the vat shown by woocommerce is not always consistent:
    https://ibb.co/DDXyZYY

    on the first line it is 3.43€, but in the main table it is 3€.
    When I export with a number of decimals of 2 and no rounding, I have the following result in my export :
    [p] item cost: 15.57€ OK
    [p] item tax rate: 22.02% OK
    [p] order line tax: 3.00€ WRONG
    [p] order line total (include tax): 18.57377€ WRONG

    do you know where that vat amount inconsistence could come from?

    Thread Starter chchch

    (@goch)

    my bad, the calcul is right

    Thread Starter chchch

    (@goch)

    here is a screenshot: https://ibb.co/ZzDMWHb
    it seems that it’s woocommerce that is calculating vat the wrong way!
    I’ll open a ticket with them then

    Thread Starter chchch

    (@goch)

    I’m not sure what you mean.
    the [P] Order Line Total (include tax) I’m mentioning above and that has a wrong value is in Setup Fields>Product Order Items yes

    there’s no way for you to get the correct total item amount and total item tax from woocommerce?
    and then calculate a correct tax rate from it?

    • This reply was modified 3 years, 6 months ago by chchch.
Viewing 15 replies - 1 through 15 (of 23 total)