• Resolved chrispytoes

    (@chrispytoes)


    I am trying to test a payment with WooCommerce Stripe. I’ve set up and connected Square as the only payment option, and shipping is all configured correctly. Everything works right up until checkout and I get the message “The provided card was declined, please use an alternate card or other form of payment.”. I’ve tried three different cards and they all get declined.

    Here is the erroneous response in the debug log:

    
    Response
    code: 402
    message:
    headers: Array
    (
    [0] => HTTP/1.1 402 Payment Required
    [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] => Thu, 24 Oct 2019 17:04:49 GMT
    [keep-alive] => timeout=60
    [Strict-Transport-Security] => max-age=631152000
    [content-length] => 97
    )
    body: Array
    (
    [errors] => Array
    (
    [0] => stdClass Object
    (
    [category] => PAYMENT_METHOD_ERROR
    [code] => CARD_DECLINED
    [detail] => Card declined.
    )
    )
    )
    

    This error does not create a log in the status/logs screen.

    • This topic was modified 5 years, 1 month ago by chrispytoes.
    • This topic was modified 5 years, 1 month ago by chrispytoes.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Elvira K.

    (@treibalen)

    Hi there @chrispytoes,

    I’m sorry to hear that you’re having issues with Square.

    Everything works right up until checkout and I get the message “The provided card was declined, please use an alternate card or other form of payment.”. I’ve tried three different cards and they all get declined.

    Can you please advise if your test payment is more than $1 which is the minimum allowed amount?

    If yes, could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status.
    Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response in coding brackets.

    Cheers!

    Elvira K.

    (@treibalen)

    Hi there @chrispytoes,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Hi Guys
    I am getting error on square payment gateway in woocommerce with real card.
    I am using https://docs.woocommerce.com/document/woocommerce-square/.
    Error:
    “The provided card was declined, please use an alternate card or other form of payment.”
    Please help on it.

    Hi there @vivekshakyashakya,

    Please open a separate thread and we’ll be happy to look into it for you.

    Cheers!

    Hi Elvira,
    Please help on this matter and what do you need from me?
    Please let me know.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘All cards getting declined’ is closed to new replies.