Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing channel_status_code and channel_status_message field in CoreGateway Response #78

Closed
riskimidiw opened this issue Feb 25, 2021 · 2 comments · Fixed by #79
Closed

Comments

@riskimidiw
Copy link

riskimidiw commented Feb 25, 2021

Doc: https://api-docs.midtrans.com/#get-transaction-status
Request:

GET /v2/{order_id}/status

Response:

{
  "status_code" : "200",
  "status_message" : "Success, transaction found",
  "transaction_id" : "249fc620-6017-4540-af7c-5a1c25788f46",
  "masked_card" : "481111-1114",
  "order_id" : "example-1424936368",
  "payment_type" : "credit_card",
  "transaction_time" : "2015-02-26 14:39:33",
  "transaction_status" : "partial_refund",
  "fraud_status" : "accept",
  "approval_code" : "1424936374393",
  "signature_key" : "2802a264cb978fbc59f631c68d120cbda8dc853f5dfdc52301c615cf4f14e7a0b09aa...",
  "bank" : "bni",
  "gross_amount" : "30000.00",
  "channel_response_code": "00",
  "channel_response_message": "Approved",
  "card_type": "credit",
  "refund_amount": "12000.00",
  "refunds": [
    {
      "refund_chargeback_id": 1,
      "refund_amount": "5000.00",
      "created_at": "2015-02-27 00:14:20",
      "reason": "some reason",
      "refund_key": "reference1"
    },
    {
      "refund_chargeback_id": 2,
      "refund_amount": "7000.00",
      "created_at": "2015-02-28 01:23:15",
      "reason": "",
      "refund_key": "reference2"
    },
  ]
}

Based on this documentation when we call Get Status API, it might contains the channel_status_code and channel_status_message field, but it was missing from Response struct in response.go

@riskimidiw riskimidiw changed the title Missing channel_status_code and channel_status_message field in CoreGateway Response Missing channel_status_code and channel_status_message fields in CoreGateway Response Feb 25, 2021
@riskimidiw riskimidiw changed the title Missing channel_status_code and channel_status_message fields in CoreGateway Response Missing channel_status_code and channel_status_message field in CoreGateway Response Feb 25, 2021
@rizdaprasetya
Copy link
Contributor

Hi @riskimidiw thanks for opening issue, we are adding those missing fields on the above PR, please check again now. Thanks!

@riskimidiw
Copy link
Author

Okay, thanks mas @rizdaprasetya

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants