• Resolved blueocean109

    (@blueocean109)


    class-easy-payment-authorizenet-googlepay-gateway.php 

    Confirmed — this is a bug in the plugin. On line 1102:

    $this->set_order_addresses_from_gpay($order, $addr_arr, $name_arr);
    

    $name_arr is never defined anywhere in ajax_express_pay(). The variable $shipping_name is parsed on line 1031 as a plain string, but it’s never converted to the $name_arr array that set_order_addresses_from_gpay() expects (with firstName/lastName keys).

    On PHP 8.5, passing an undefined variable where a typed array parameter is expected causes a fatal error, which kills the AJAX request with a 500.

    The one successful transaction likely happened because the Google Pay payment sheet didn’t return a shipping name that time, so $addr_arr was empty and the code skipped line 1102 entirely.

    This is a plugin bug that needs to be fixed in the plugin file itself. The fix on line 1102 would be to replace $name_arr with a properly parsed array from $shipping_name.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Jignesh

    (@jigneshmpatel)

    Hello,

    Thank you for bringing this to our attention. We’ll investigate and try to reproduce the problem on our end. I’ll update you as soon as I have more details or a fix available.

    Best regards

    Plugin Support Jignesh

    (@jigneshmpatel)

    Hello,

    We have included a fix for the issue you reported in this version 1.0.11

    Please try latest version and let us know how it works for you 

    Best Regards

    Plugin Support Jignesh

    (@jigneshmpatel)

    I’m closing this ticket now. If you have any further questions or run into any issues, feel free to open a new one — we’ll be happy to assist you.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.