Closed cod3beat closed 5 years ago
Hi @keripix, thank you for using veritrans-php.
In the new code base, line 15-21, that you've referred, have been moved to line 38 - 44 (VtWeb.php).
It turns out that our documentation is wrong. The code is right.
item_details
is optional.id
, price
, quantity
, & name
of item is mandatory if item is existThank you for reporting this issue. Our support team will update the documentation page :smile:
docs already update
Sorry, but the doc is not updated. https://api-docs.midtrans.com/#item-details
hi @Dimasdanz
Thanks for your information.
As our documentation said, for now this is the specs:
item_details
is optional.price
, quantity
, & name
of item is mandatory if item is existIn the doc, the item id
of item_details
is optional, but the sanitizer does not check its existence.
Base on the
VtWeb.php
file on line 15 - 21, it seems that whenitem_details
parameter are provided, thequantity
andprice
fields become mandatory for each of the items insideitem_details
.This is different from the http://docs.veritrans.co.id/en/api/methods.html page, where it states that the
quality
andprice
fields are optional.