Undefined index: email : Midtrans/Sanitizer.php
irfanhkm opened this issue · 2 comments
irfanhkm commented
Error Detail:
exception: "ErrorException"
file: "/vendor/midtrans/midtrans-php/Midtrans/Sanitizer.php"
line: 67
message: "Undefined index: email"
Question:
Is this library not support optional email on customer payload? refer to https://api-docs.midtrans.com/#item-details-object, the email payload is an optional.
Thank you.
Xaxxis commented
Hi @irfanhkm thank you for reaching out to us. Looks like a valid issue, Basically our library support optional request. This happens cause of some issues in Sanitize feature. The issue was acknowledged by our team, will be fixed on the next release. For a workaround you can disable the sanitize feature, Config::$isSanitized = false;
or remove the line part of isSanitize feature.
Thank you
Xaxxis commented
Resolved, released on a new version. Thank you