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

New source of type 'three_d_secure' returns a validation error #134

Closed
carantunes opened this issue Jan 16, 2019 · 3 comments
Closed

New source of type 'three_d_secure' returns a validation error #134

carantunes opened this issue Jan 16, 2019 · 3 comments

Comments

@carantunes
Copy link

carantunes commented Jan 16, 2019

When I create a new source of type "three_d_secure" an error is returned related to the card sent in the TypeData field.

Logs

Request: POST /v1/sources
Request data = map[metadata:map[booking_id:12345] amount:100 currency:eur owner:map[name:string] redirect:map[return_url:https://some-url.com] type:three_d_secure three_d_secure:map[card:card_1B3xSU2eZvKYlo2CB4hHWxFm]]
Request validation error: validator 0xc420a8cf90 failed: additional properties are not allowed: three_d_secure
@ob-stripe
Copy link
Contributor

Hi @carantunes, thanks for the report. It seems that the three_d_secure parameter is not present in the public OpenAPI specification for the POST /v1/sources endpoint.

Note that even if we were to fix the specification to add this parameter, stripe-mock currently does not have the ability to return a resource consistent with the parameters, only with the endpoint. That is to say, stripe-mock would return a source object, but probably not one with type=three_d_secure (looking at the current version of the fixtures file, the source fixture has type=ach_credit_transfer).

@carantunes
Copy link
Author

Hi, thanks for the fast answer!

Note that even if we were to fix the specification to add this parameter, stripe-mock currently does not have the ability to return a resource consistent with the parameters, only with the endpoint.

I know that, however for testing purposes I need the create sources endpoint to work with type=three_d_secure, even if the returned resource is not consistent with the parameter.

@pakrym-stripe
Copy link
Contributor

Hi. I apologize for the extremely delayed response. The three_d_secure is now available in the spec.

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

3 participants