Skip to content

A typo in the docs #2

@chderen

Description

@chderen

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions