DinkumInteractive / woocommerce-muse

Woocommerce Muse Integration
0 stars 0 forks source link

Order export action #30

Closed Sean12mps closed 6 years ago

Sean12mps commented 6 years ago
  1. Run the method
  2. depending on the response, we can validate with the request code: a. if it returned a success response we should change the order status and store a success message related to the order b. if it is an error we should store the error returned
gtenaschuk commented 6 years ago

Http code 20X means it was processed correctly, in that case we need to change order status to completed and store the result in a meta key _muser_response

Different http code is an error and we need to see if there is an errors key in the result to store it in a meta ley _muser_response if no errors we should store the entire response