Skip to content

Incorrect variable type in doc comments for $version parameter in paymentIntentsCreatePaymentIntent() #9

@matt5mith

Description

@matt5mith

I suspect there will be other occurrences of this but the variable type for $version in paymentIntentsCreatePaymentIntent() is documented to be a DateTime object:

@param \DateTime $version API version with format yyyy-mm-dd. Current version is 2022-04-07. Today's date will always give you the latest version. (required)

No type is enforced on the parameter itself:

public function paymentIntentsCreatePaymentIntent($version,

If a DateTime is passed through then a Bad Request is received. The documentation on docs.dojo.tech suggests to pass through the constant API_VERSION which is a string. This works fine so it just appears to be an issue with the PHPDocs.

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