Title: Bug Report &#8211; Google Pay button Error
Last modified: April 7, 2026

---

# Bug Report – Google Pay button Error

 *  Resolved [blueocean109](https://wordpress.org/support/users/blueocean109/)
 * (@blueocean109)
 * [2 months ago](https://wordpress.org/support/topic/bug-report-google-pay-button-error/)
 * class-easy-payment-authorizenet-googlepay-gateway.php 
 * Confirmed — this is a **bug in the plugin**. On line 1102:
 *     ```wp-block-code
       $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](https://wordpress.org/support/users/jigneshmpatel/)
 * (@jigneshmpatel)
 * [2 months ago](https://wordpress.org/support/topic/bug-report-google-pay-button-error/#post-18873415)
 * 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](https://wordpress.org/support/users/jigneshmpatel/)
 * (@jigneshmpatel)
 * [2 months ago](https://wordpress.org/support/topic/bug-report-google-pay-button-error/#post-18873435)
 * 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](https://wordpress.org/support/users/jigneshmpatel/)
 * (@jigneshmpatel)
 * [1 month ago](https://wordpress.org/support/topic/bug-report-google-pay-button-error/#post-18901666)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbug-report-google-pay-button-error%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/payment-gateway-for-authorize-net-for-woocommerce/assets/
   icon-256x256.png?rev=3342779)
 * [Payment Gateway for Authorize.net for WooCommerce](https://wordpress.org/plugins/payment-gateway-for-authorize-net-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/payment-gateway-for-authorize-net-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/payment-gateway-for-authorize-net-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/payment-gateway-for-authorize-net-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/payment-gateway-for-authorize-net-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/payment-gateway-for-authorize-net-for-woocommerce/reviews/)

## Tags

 * [authorize.net](https://wordpress.org/support/topic-tag/authorize-net/)

 * 6 replies
 * 2 participants
 * Last reply from: [Jignesh](https://wordpress.org/support/users/jigneshmpatel/)
 * Last activity: [1 month ago](https://wordpress.org/support/topic/bug-report-google-pay-button-error/#post-18901666)
 * Status: resolved