Title: Payment Issue
Last modified: August 6, 2020

---

# Payment Issue

 *  Resolved [apexa0123](https://wordpress.org/support/users/apexa0123/)
 * (@apexa0123)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/payment-issue-11/)
 * Hi,As we discussed before I am facing payment problem while customer enter card
   details. here is my log error and I replaced sensitive data with * .
    /*error
   log starts*/ 08-05-2020 @ 17:56:28 – Square.js Response: Array ( [digital_wallet_type]
   => NONE [card_brand] => MASTERCARD [last_4] => **** [exp_month] => * [exp_year]
   => **** [billing_postal_code] => *** *** )
 * 08-05-2020 @ 18:01:47 – Square.js Response:
    Array ( [digital_wallet_type] =>
   NONE [card_brand] => MASTERCARD [last_4] => **** [exp_month] => * [exp_year] 
   => **** [billing_postal_code] => *** *** ) /*error log ends*/

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

 *  Thread Starter [apexa0123](https://wordpress.org/support/users/apexa0123/)
 * (@apexa0123)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/payment-issue-11/#post-13219092)
 * Meanwhile when customer click on proceed to place order it shows following error
   in console :
    1. Uncaught TypeError: a.sort is not a function at n.value (wc-
   square.min.js:546) at n.value (wc-square.min.js:431) at paymentform?ver=2.1.6:
   1 at data.js:10 at r.callback (data.js:15) at r.invoke (data.js:15) at p.handleChallenges(
   data.js:15) at s.messageReceived (data.js:10) at f (data.js:1)
 * 2. wc-square.min.js:706 Square Error: Error getting payment data
 * 3. Failed to load resource: the server responded with a status of 400 ()
 *  Plugin Support [slash1andy](https://wordpress.org/support/users/slash1andy/)
 * (@slash1andy)
 * Automattic Happiness Engineer
 * [5 years, 8 months ago](https://wordpress.org/support/topic/payment-issue-11/#post-13219533)
 * Hey there!
 * This kind of problem is usually caused by either a conflict with your theme or
   with another plugin.
      The best way to determine this is to:
    - 
    - Disable all plugins except for WooCommerce
    - Repeat the action that is causing the problem
 * If you’re not seeing the same problem after completing the conflict test, then
   you know the problem was with the plugins and/or theme you deactivated. To figure
   out which plugin is causing the problem, reactivate your other plugins one by
   one, testing after each, until you find the one causing conflict. You can find
   a more detailed explanation on how to do a conflict test here.
 *  Thread Starter [apexa0123](https://wordpress.org/support/users/apexa0123/)
 * (@apexa0123)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/payment-issue-11/#post-13220568)
 * Hi, Thank you I have tested default theme and payment is working but I am unable
   to find which plugin conflicts , I am pasting network side error from service:
 * method : varification – {“errors”:[{“category”:”INVALID_REQUEST_ERROR”,”code”:”
   INVALID_ENUM_VALUE”,”detail”:” is not a valid enum value for `verification_details.
   billing_contact.country`.”,”field”:”verification_details.billing_contact.country”}]}
 *  Plugin Support [slash1andy](https://wordpress.org/support/users/slash1andy/)
 * (@slash1andy)
 * Automattic Happiness Engineer
 * [5 years, 8 months ago](https://wordpress.org/support/topic/payment-issue-11/#post-13224374)
 * That usually means there’s a JavaScript error there, a lot of times that means
   the theme is not parsing the fields properly.
 * I would say that’s a good place to start
 *  Thread Starter [apexa0123](https://wordpress.org/support/users/apexa0123/)
 * (@apexa0123)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/payment-issue-11/#post-13226082)
 * Hi, I have solved above varification method erro now I am facing following error:
   
   An error occurred, please try again or try an alternate form of payment.
 *  Thread Starter [apexa0123](https://wordpress.org/support/users/apexa0123/)
 * (@apexa0123)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/payment-issue-11/#post-13227609)
 * Square: Payment nonce present, placing order in console
 *  Thread Starter [apexa0123](https://wordpress.org/support/users/apexa0123/)
 * (@apexa0123)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/payment-issue-11/#post-13227706)
 * 08-09-2020 @ 07:06:07 – Response
    code: 400 message: headers: Array ( [0] => 
   HTTP/2 400 [content-type] => application/json [square-version] => 2019-08-14 [
   vary] => Origin, Accept-Encoding [x-content-type-options] => nosniff [x-download-
   options] => noopen [x-frame-options] => SAMEORIGIN [x-permitted-cross-domain-
   policies] => none [x-xss-protection] => 1; mode=block [date] => Sun, 09 Aug 2020
   07:06:07 GMT [content-length] => 182 [strict-transport-security] => max-age=631152000;
   includeSubDomains; preload ) body: Array ( [errors] => Array ( [0] => stdClass
   Object ( [category] => INVALID_REQUEST_ERROR [code] => INVALID_ENUM_VALUE [detail]
   =>  is not a valid enum value for `billing_address.country`. [field] => billing_address.
   country )
 *  )
 * )
 * 08-09-2020 @ 07:06:07 - Status code INVALID_ENUM_VALUE:  is not a valid enum 
   value for `billing_address.country`.
 *  Plugin Support [Aashik P – a11n](https://wordpress.org/support/users/aashik/)
 * (@aashik)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/payment-issue-11/#post-13230101)
 * Marking as resolved since there are 3 other support topics related to the same
   issue.
 * Please continue the discussion at [https://wordpress.org/support/topic/square-payment/](https://wordpress.org/support/topic/square-payment/)
   for further troubleshooting.

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

The topic ‘Payment Issue’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-square/assets/icon-256x256.png?rev=3234354)
 * [WooCommerce Square](https://wordpress.org/plugins/woocommerce-square/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-square/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-square/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-square/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-square/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-square/reviews/)

## Tags

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

 * 8 replies
 * 3 participants
 * Last reply from: [Aashik P – a11n](https://wordpress.org/support/users/aashik/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/payment-issue-11/#post-13230101)
 * Status: resolved