[Core Gateway] Return error if status code != 200#54
[Core Gateway] Return error if status code != 200#54mychaelgo wants to merge 1 commit intoveritrans:masterfrom
Conversation
|
Hi @mychaelgo thanks, but not sure about this one, because status_code other than 200, can also be considered as success. Like 201 is for successfully created transaction, but the transaction is in pending state and need further payment from customer, in case of Bank Transfer, Gopay, etc. Also API may response 406 if order_id is duplicated, but it means the API call is success, but the request contains invalid data. So it is not entirely |
|
@rizdaprasetya hm okay, so for example i want to change status transaction to |
|
In that case you should refer to the response body or the |
Here i want to propose
returning error message in err instead of nilifstatus_code != 200in core gateway@rizdaprasetya please review