Skip to content

CVV is unsupported #486

@steveklabnik

Description

@steveklabnik

test:

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

    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": "unsupported"                                                                                                                                
        }                                                                                                                                                          
      """    

result:

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

Is this just wrong fixture data?

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