Sha256: 6f0c315b50673143f7fc1253aa5d0dddc94e68f6c57e5c4930407c4c00878850

Contents?: true

Size: 1.73 KB

Versions: 3

Compression:

Stored size: 1.73 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: https://sandbox.espago.com/api/tokens
    body:
      encoding: US-ASCII
      string: card%5Bfirst_name%5D=Jan&card%5Blast_name%5D=Kowalski&card%5Bnumber%5D=4242424242424242&card%5Bverification_value%5D=123&card%5Byear%5D=2015&card%5Bmonth%5D=2
    headers:
      Accept:
      - application/vnd.espago.v2+json
      Authorization:
      - Basic YXBwX3B1YmxpY19rZXlfdGVzdDo=
      Content-Type:
      - application/x-www-form-urlencoded
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      User-Agent:
      - Ruby
  response:
    status:
      code: 201
      message: Created
    headers:
      Access-Control-Allow-Origin:
      - "*"
      Access-Control-Allow-Methods:
      - POST,OPTIONS
      Access-Control-Allow-Headers:
      - Origin,Accept,Content-Type,X-Requested-With,X-CSRF-Token,Authorization
      Content-Type:
      - application/json; charset=utf-8
      X-Meta-Request-Version:
      - 0.2.2
      X-Ua-Compatible:
      - IE=Edge
      Etag:
      - '"bebba4898713a5205954333a29c0e1cc"'
      Cache-Control:
      - max-age=0, private, must-revalidate
      Set-Cookie:
      - _session_id=255fbb3fda2057dc4cc956fe42d388b7; path=/; HttpOnly
      X-Request-Id:
      - fcb337aec80cff8ef25686049c0b46e7
      X-Runtime:
      - '0.553115'
      Connection:
      - close
      Server:
      - thin 1.5.0 codename Knife
    body:
      encoding: UTF-8
      string: '{"id":"cc_166YDMhrVcemFb3","created_at":1417029320,"used":false,"card":{"company":"VI","last4":"4242","year":2015,"month":2,"first_name":"Jan","last_name":"Kowalski","authorized":null,"created_at":1417029320}}'
    http_version:
  recorded_at: Wed, 26 Nov 2014 19:15:20 GMT
recorded_with: VCR 2.9.3

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
espago-0.1.11 spec/fixtures/cassettes/tokens_post.yml
espago-0.1.10 spec/fixtures/cassettes/tokens_post.yml
espago-0.1.9 spec/fixtures/cassettes/tokens_post.yml