Title: Warning: Array message appears by Checkout
Last modified: August 14, 2020

---

# Warning: Array message appears by Checkout

 *  Resolved [lois98](https://wordpress.org/support/users/lois98/)
 * (@lois98)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/warning-array-message-appears-by-checkout/)
 * Hi there,
    When testing my eCommerce page, I added a product to my cart and after
   I went to cart I received the following warning – Warning: array_key_exists()
   expects parameter 2 to be array, null given in /usr/www/users xxx/wp-content/
   plugins/yoco-payment-gateway/class_yoco_wc_error_logging.php on line 199
 * I have no idea what is causing this to appear and it carried on showing as you
   go along the checkout process, I updated the Plugin in hopes that it will resolve
   this issue but it stays the same.
 * When looking at the code it shows – if (array_key_exists(‘token’, $response)){
   
   return $response[‘token’]; } Can anyone help me with this?

The topic ‘Warning: Array message appears by Checkout’ is closed to new replies.

 * ![](https://ps.w.org/yoco-payment-gateway/assets/icon-256x256.png?rev=3253194)
 * [Yoco Payments](https://wordpress.org/plugins/yoco-payment-gateway/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yoco-payment-gateway/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yoco-payment-gateway/)
 * [Active Topics](https://wordpress.org/support/plugin/yoco-payment-gateway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yoco-payment-gateway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yoco-payment-gateway/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [lois98](https://wordpress.org/support/users/lois98/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/warning-array-message-appears-by-checkout/)
 * Status: resolved