Sha256: 66818851ea4872df882ad47119358eeba404e3be187dbeb1b2a63678fecb1ce2

Contents?: true

Size: 1.26 KB

Versions: 2

Compression:

Stored size: 1.26 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
        21:10:15 +0700","gross_amount":100000}}'
    headers:
      User-Agent:
      - Veritrans ruby gem 2.0.0beta
      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 14:11: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/aff32361-ad6b-4e3f-9173-95b057e68157"
        }
    http_version: 
  recorded_at: Tue, 04 Nov 2014 14:10: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_vtweb.yml
veritrans-2.2.0 spec/fixtures/charge_vtweb.yml