Skip to content

CVV does not match #487

Closed
Closed

Description

@steveklabnik

test:

    When I make a POST request to /cards with the body:                                                                                                            
      """                                                                                                                                                          
        {                                                                                                                                                          
           "number": "4111111111111111",                                                                                                                           
            "expiration_month": 12,                                                                                                                                
            "expiration_year": 2016,                                                                                                                               
            "cvv": "200"                                                                                                                                           
        }                                                                                                                                                          
      """                                                                                                                                                          

    Then I should get a 201 CREATED status code                                                                                                                    
    And the response is valid according to the "cards" schema                                                                                                      
    And the fields on this card match:                                                                                                                             
      """                                                                                                                                                          
        {                                                                                                                                                          
         "cvv_match": "no"                                                                                                                                         
        }                                                                                                                                                          
      """     

failure:

<"no"> expected but was                                                                                                                                            
<"yes">. (MiniTest::Assertion)

Is this just incorrect fixture data?

Activity

  1. steveklabnik commented on Jan 20, 2014

    @steveklabnik
    ContributorAuthor

    Looks like this should be 902 rather than 200.

  2. steveklabnik commented on Jan 20, 2014

    @steveklabnik
    ContributorAuthor

    @mjallday with a 902, which from #486 (comment) I think should be a no, I'm still getting yes.

  3. matthewfl commented on Jan 20, 2014

    @matthewfl
    Contributor

    @steveklabnik I am looking into this on the backend atm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions