• Resolved apexa0123

    (@apexa0123)


    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

    (@apexa0123)

    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

    (@slash1andy)

    Automattic Happiness Engineer

    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:

    • Temporarily switch your theme to Storefront
    • 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

    (@apexa0123)

    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

    (@slash1andy)

    Automattic Happiness Engineer

    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

    (@apexa0123)

    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

    (@apexa0123)

    Square: Payment nonce present, placing order in console

    Thread Starter apexa0123

    (@apexa0123)

    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

    (@aashik)

    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/ for further troubleshooting.

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

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