--- http_interactions: - request: method: post uri: https://api.sandbox.midtrans.com/v2/charge body: encoding: UTF-8 string: '{"payment_type":"permata","transaction_details":{"order_id":"2016-10-20 12:39:16 +0700","gross_amount":100000}}' headers: User-Agent: - Veritrans ruby gem 2.1.2 Authorization: - Basic VlQtc2VydmVyLTlIdGItUnhYa2c3LTdoem5TQ0NqeHZvWTo= Accept: - application/json Content-Type: - application/json response: status: code: 200 message: '' headers: Server: - nginx Date: - Thu, 20 Oct 2016 05:39:18 GMT Content-Type: - application/json Content-Length: - '425' Connection: - keep-alive Cache-Control: - no-cache Pragma: - no-cache Expires: - Wed, 31 Dec 1969 17:00:00 GMT Strict-Transport-Security: - max-age=63072000; includeSubdomains; preload body: encoding: ASCII-8BIT string: |- { "status_code" : "201", "status_message" : "Success, PERMATA VA transaction is successful", "transaction_id" : "365ea37f-db35-4b24-9a93-b1fa3fde4780", "order_id" : "2016-10-20 12:39:16 +0700", "gross_amount" : "100000.00", "payment_type" : "bank_transfer", "transaction_time" : "2016-10-20 12:39:12", "transaction_status" : "pending", "fraud_status" : "accept", "permata_va_number" : "8778006742354093" } http_version: recorded_at: Thu, 20 Oct 2016 05:39:18 GMT - request: method: get uri: https://api.sandbox.midtrans.com/v2/2016-10-20%2012:39:16%20+0700/status body: encoding: US-ASCII string: '' headers: User-Agent: - Veritrans ruby gem 2.1.2 Authorization: - Basic VlQtc2VydmVyLTlIdGItUnhYa2c3LTdoem5TQ0NqeHZvWTo= Accept: - application/json Content-Type: - application/json response: status: code: 200 message: '' headers: Server: - nginx Date: - Thu, 20 Oct 2016 05:39:18 GMT Content-Type: - application/json Content-Length: - '561' Connection: - keep-alive Cache-Control: - no-cache Pragma: - no-cache Expires: - Wed, 31 Dec 1969 17:00:00 GMT Vary: - Accept-Encoding, User-Agent Strict-Transport-Security: - max-age=63072000; includeSubdomains; preload body: encoding: ASCII-8BIT string: |- { "status_code" : "201", "status_message" : "Success, transaction is found", "transaction_id" : "365ea37f-db35-4b24-9a93-b1fa3fde4780", "order_id" : "2016-10-20 12:39:16 +0700", "gross_amount" : "100000.00", "payment_type" : "bank_transfer", "transaction_time" : "2016-10-20 12:39:12", "transaction_status" : "pending", "fraud_status" : "accept", "permata_va_number" : "8778006742354093", "signature_key" : "bbdb81aead6f9262e6c184fa4fabf615189e92619c654895b8adee538bd1b1100688bc54fd3fd5b26a78ef56175cd5946daefcea41e5fe0abd575c60d9f196fd" } http_version: recorded_at: Thu, 20 Oct 2016 05:39:18 GMT recorded_with: VCR 3.0.3