Midtrans / midtrans-php

Official Midtrans Payment API Client for PHP | https://midtrans.com
MIT License
319 stars 106 forks source link

Inconsistent Response #84

Open rmdhfz opened 1 year ago

rmdhfz commented 1 year ago

Dear Team, Please ensure consistent responses for each selected payment channel when using the bank transfer method. Currently, I am receiving a different response for Bank Mandiri, Bank BCA and Bank Permata:

Bank Mandiri:

{
  "transaction_time": "2023-05-20 23:00:32",
  "transaction_status": "pending",
  "transaction_id": "7c74b024-2048-4a1a-b73f-3cf9972a18a7",
  "status_message": "midtrans payment notification",
  "status_code": "201",
  "signature_key": "c7f85eea276ac73130cd8aa80316ef54ddd17f77c8862c12bc83db6619b52cf265388597e12b9f0881fbc29a9e3d7152f2a6c22efab9a2c6f820f3161a34b83c",
  "payment_type": "echannel",
  "order_id": "ORDER-20230520-5111",
  "merchant_id": "G076939150",
  "gross_amount": "1750000.00",
  "fraud_status": "accept",
  "expiry_time": "2023-05-21 23:00:26",
  "currency": "IDR",
  "biller_code": "70012",
  "bill_key": "575508023015"
}

Bank BCA:

{
  "va_numbers": [
    {
      "va_number": "39150080593",
      "bank": "bca"
    }
  ],
  "transaction_time": "2023-05-20 23:00:53",
  "transaction_status": "pending",
  "transaction_id": "64ffa75e-5410-4bd2-afc9-1936c528bea9",
  "status_message": "midtrans payment notification",
  "status_code": "201",
  "signature_key": "cdac297a9e2e52153d68042ef9f5c1a883b7e8addb8ba4a9282a96bc53c4efa70d3397fb30895b41f7f5051595f3dfe9495a15029199960bbd89ee31c1cded7e",
  "payment_type": "bank_transfer",
  "payment_amounts": [

  ],
  "order_id": "ORDER-20230520-9354",
  "merchant_id": "G076939150",
  "gross_amount": "2300000.00",
  "fraud_status": "accept",
  "expiry_time": "2023-05-21 23:00:46",
  "currency": "IDR"
}

Bank Permata:

{
    "status_code": "201",
    "status_message": "Transaksi sedang diproses",
    "transaction_id": "b419abd8-2404-4e37-8f96-67a712614edd",
    "order_id": "ORDER-20230520-2920",
    "gross_amount": "1750000.00",
    "payment_type": "bank_transfer",
    "transaction_time": "2023-05-20 23:15:57",
    "transaction_status": "pending",
    "fraud_status": "accept",
    "permata_va_number": "3910032344677609",
    "pdf_url": "https://app.sandbox.midtrans.com/snap/v1/transactions/e9c146cc-4341-4788-8cd5-921fd88a81f9/pdf",
    "finish_redirect_url": "http://example.com?order_id=ORDER-20230520-2920&status_code=201&transaction_status=pending"
}

Please provide a unified response to simplify the process for developers when handling the response. Thank you.

Andrenzo17 commented 1 year ago

Hi @rmdhfz thank you for your feedback.

For payment method bank transfer Mandiri, expected slightly a bit different because MIdtrans use Mandiri Bill Payment not Mandiri VA. And for Permata VA and BCA VA, i will confirm first to our product team.

Thank you

rmdhfz commented 1 year ago

Hi @Andrenzo17 , any update ?

Andrenzo17 commented 1 year ago

Hi Hafiz, our product team already acknowledge your concern. But sorry we still in the middle other Development, so there is no ETA until now. Thank you