Title: Payment error
Last modified: July 1, 2022

---

# Payment error

 *  Resolved [tradin](https://wordpress.org/support/users/tradin/)
 * (@tradin)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/payment-error-34/)
 * 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)

 *  [Mike W](https://wordpress.org/support/users/nixiack8/)
 * (@nixiack8)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/payment-error-34/#post-15787189)
 * Hi [@tradin](https://wordpress.org/support/users/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](https://woocommerce.com/document/woocommerce-square/#section-18).
   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](https://wordpress.org/support/users/tradin/)
 * (@tradin)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/payment-error-34/#post-15787283)
 * 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.
 *  [3 Sons Development](https://wordpress.org/support/users/3sonsdevelopment/)
 * (@3sonsdevelopment)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/payment-error-34/#post-15789561)
 * Hey [@tradin](https://wordpress.org/support/users/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](https://wordpress.org/support/users/tradin/)
 * (@tradin)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/payment-error-34/#post-15790157)
 * Thank you. Lots to learn!

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

The topic ‘Payment error’ 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/)

 * 4 replies
 * 3 participants
 * Last reply from: [tradin](https://wordpress.org/support/users/tradin/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/payment-error-34/#post-15790157)
 * Status: resolved