Sha256: 4d0247fed91e9b0c2c9eb3469f00ad3ad3b446a9500e188ca661bd4545b8c264

Contents?: true

Size: 1.25 KB

Versions: 2

Compression:

Stored size: 1.25 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: https://api.sandbox.midtrans.com/v2/charge
    body:
      encoding: UTF-8
      string: '{"payment_type":"VTWEB","transaction_details":{"order_id":"2014-11-04
        20:58:14 +0700","gross_amount":100000}}'
    headers:
      User-Agent:
      - excon/0.40.0
      Authorization:
      - Basic VlQtc2VydmVyLTlIdGItUnhYa2c3LTdoem5TQ0NqeHZvWTo=
      Accept:
      - application/json
      Content-Type:
      - application/json
  response:
    status:
      code: 200
      message: ''
    headers:
      Server:
      - nginx/1.5.13
      Date:
      - Tue, 04 Nov 2014 13:59:46 GMT
      Content-Type:
      - application/json
      Content-Length:
      - '217'
      Connection:
      - keep-alive
      Cache-Control:
      - no-cache
      Pragma:
      - no-cache
      Expires:
      - Wed, 31 Dec 1969 17:00:00 GMT
    body:
      encoding: UTF-8
      string: |-
        {
          "status_code" : "201",
          "status_message" : "OK, success do VTWeb transaction, please go to redirect_url",
          "redirect_url" : "https://vtweb.sandbox.midtrans.com/v2/vtweb/f523ecff-34e7-4791-a558-3f579f731b75"
        }
    http_version: 
  recorded_at: Tue, 04 Nov 2014 13:58:15 GMT
recorded_with: VCR 2.9.3

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
veritrans-2.3.0 spec/fixtures/charge.yml
veritrans-2.2.0 spec/fixtures/charge.yml