• Resolved rcoopercanyon

    (@rcoopercanyon)


    Hello,

    We are having an error when checking out via the shortcode placed on a page. Either in popup mode or not. If instead of the shortcode, you make a donation via the donation product page and checkout page, the purchase goes through.

    In our testing we are on WooCommerce 10.3.4, WP 6.8.3, on a 2025 theme, PHP 8.2.29, no other plugins except Authorize.net gateway. We are also testing locally with no caching whatsoever. The fact that it works in the regular WooCommerce pages, but the shortcode is missing the nonce seems to be something causing it to not work.

    Any help or direction is appreciated.

    Thank you,
    Ross

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

Viewing 1 replies (of 1 total)
  • Plugin Author Jonas

    (@flinnn)

    Hi Ross,

    thanks for reaching out.

    Quick question: are you using this payment gateway? https://woocommerce.com/products/authorize-net/

    Since I don’t have access to that plugin’s source code, it’s a bit tricky for me to debug directly, but I believe I know what’s happening:

    By default, the WooCommerce cart starts out empty. Donation forms populate the cart via AJAX so the page doesn’t need to reload when a donor changes their amount. If you’re using the product page or donation form style 4, the cart gets populated first and then the user is redirected to the checkout.

    Unfortunately, some payment gateways don’t fully support dynamic cart updates. In this case, it looks like Authorize.net only generates its nonce when the cart already contains items. Because of that, I recommend switching to donation form style 4 if you want to continue using Authorize.net.

    Best,
    Jonas

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.