Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
matt5mith opened this issue Nov 5, 2024 · 0 comments

Comments

@matt5mith
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant