Closed nicholas-davison closed 1 month ago
Order class update method was attempting to save order payment type as a string. Corrected to add payment type as an instance of Payment.
Request
PUT /orders/2 Adds a payment method to the order id in the url, thus completing the order.
/orders/2
{ "payment_type": "3" }
Response
HTTP/1.1 204 No Content
{}
Order class update method was attempting to save order payment type as a string. Corrected to add payment type as an instance of Payment.
Changes
Requests / Responses
Request
PUT
/orders/2
Adds a payment method to the order id in the url, thus completing the order.Response
HTTP/1.1 204 No Content
Testing
Related Issues