Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-13T02:54:28.190Z
Answers.LastActivityDate: 2018-12-13T02:54:28.190Z
Answers.UserDisplayName: BLobach
Body: <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>
  
Tags: <plugin-craftcommerce2>
Title: How to debug a payment gateway error
ThreadText: # 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.
  
  
  ---
  
  