-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
There is a typo in the docs related to Response_Valid, in the README "Return Usage" section, and in the wiki page https://github.com/2Checkout/2checkout-node/wiki/Response_Valid.
The second parameter on tco.response.valid is the total price, in the docs that parameter not placed correctly.
if (tco.response.valid(request.body), 0.01) {
should be
if (tco.response.valid(request.body, 0.01)) {
BTW the total price must be a string ('20.10') and not a Number(20.1).
jabedhasan21
Metadata
Metadata
Assignees
Labels
No labels