Support » Plugin: WooCommerce Square » Payment error

  • Resolved tradin

    (@tradin)


    Hi,
    I sent an invoices to some customers, and 3 paid without any trouble, but 2 people had their payments fail.

    On my Woocommerce page, it says:
    Square Payment Failed (status code BAD_REQUEST: The payment total does not match the order total.)

    I manually added a discount when the order was sill in “On-Hold” status. Is this why? And if so, how should I have done this?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Mike a11n

    (@nixiack8)

    Hi @tradin,

    When you get BAD_REQUEST: The payment total does not match the order total Square runs a payment at the time of purchase – it has two ‘options’; Authorize or immediate capture. Which setting do you have? You can see it under WooCommerce → Settings → Payments → Square.

    If it is set to Authorize, the captured amount cannot differ from the authorized amount. This is a restriction on the Square side, as they do not allow partial captures. This could be the issue if the order was changed while it was still processing – it has to go through with the total amount. If this is the case, then wait till the charge is fully through, and apply the discount in the form of a refund on the order.

    Let us know if that is the case!

    Thread Starter tradin

    (@tradin)

    Hi there, I did have it on Authorize when this problem happened. I thought from what I read, that as long as it was set to Authorize and I made the changes whilst the order was on hold (before moved to Processing) that it would be okay but it sounds like that’s not the case?

    I have recently changed it to Capture though, because I had a separate issue where I sent out an order but didn’t change status (rookie mistake) and the payment got reversed so I never got paid for the order.

    Plugin Support 3 Sons Development – a11n

    (@3sonsdevelopment)

    Hey @tradin,

    I have recently changed it to Capture though, because I had a separate issue where I sent out an order but didn’t change status (rookie mistake) and the payment got reversed so I never got paid for the order.

    Yikes! Sorry to hear that happened. I’ve seen merchants who have let the authorizations expire too after shipping orders. That can be tough.

    I thought from what I read, that as long as it was set to Authorize and I made the changes whilst the order was on hold (before moved to Processing) that it would be okay but it sounds like that’s not the case?

    That is correct. Once the authorization has been made, it’s not possible to change the amount. If you need to charge more, you can cancel the authorization and make a new order, or capture the funds and create a new order for the difference.

    If you need to charge less, go on and capture the funds and then issue a partial refund.

    As you mentioned, switching to capture mode removes the need for this. Let us know if you have any questions.

    Cheers

    Thread Starter tradin

    (@tradin)

    Thank you. Lots to learn!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.