Midtrans / midtrans-java

This is the Official Java API client/library for Midtrans Payment API. Visit https://midtrans.com. More information about the product and see documentation at http://docs.midtrans.com for more technical details
MIT License
28 stars 9 forks source link

issus with mandiri Bill #16

Closed onlyandri closed 2 years ago

onlyandri commented 2 years ago

Hi i already use SDK for Java Why when im using for Mandiri Bill it always return {"status_code":"400","status_message":"One or more parameters in the payload is invalid.","validation_messages":["echannel is required"],"id":"xxx-x-4xxf97-900f-xxxx"}

can you explain what happen for this error ?

Xaxxis commented 2 years ago

Hi @onlyandri thank you for reaching out to us The error validation above happens cause the body request missing echannel JSON object. You need to add the echannel object from your request body.

{
    "payment_type": "echannel",
    "transaction_details": {
        "gross_amount": 44000,
        "order_id": "order-101d-test"
    },
    "echannel" : {
        "bill_info1" : "Payment For:",
        "bill_info2" : "Food"
    }
}

https://api-docs.midtrans.com/#mandiri-bill-payment

Thank you

Xaxxis commented 2 years ago

Closed due to inactivity, if the issue persists or you have other general questions, please reach us via email at support@midtrans.com

Thank you