<p>On the Transactions tab of the order, there should be a payment attempt with a failed status. There's a small information icon which returns the gateway response.</p>

CC BY-SA 4.0
2018-12-13T02:54:28.190Z
2018-12-13T02:54:28.190Z
BLobach
<p>I created a payment gateway for Commerce 2. When I try to make a payment, an error happens and the flash error I get is this "Invalid payment or order. Please review.".
I don't know if my gateway is returning the error or Craft.
How do I know what is the error especifically?</p>

<plugin-craftcommerce2>
How to debug a payment gateway error
# How to debug a payment gateway error

(Asked by: username_0 on 2018-12-07)

I created a payment gateway for Commerce 2. When I try to make a payment, an error happens and the flash error I get is this "Invalid payment or order. Please review.".
I don't know if my gateway is returning the error or Craft.
How do I know what is the error especifically?

**Tags:** plugin-craftcommerce2

---

## 1 answers

### Answer by username_1 on 2018-12-13. Score: 3 | Accepted answer

On the Transactions tab of the order, there should be a payment attempt with a failed status. There's a small information icon which returns the gateway response.


---

