spec/fixtures/status_success.yml in veritrans-2.2.0 vs spec/fixtures/status_success.yml in veritrans-2.3.0
- old
+ new
@@ -3,107 +3,126 @@
- request:
method: post
uri: https://api.sandbox.midtrans.com/v2/charge
body:
encoding: UTF-8
- string: '{"payment_type":"permata","transaction_details":{"order_id":1415110500,"gross_amount":100000}}'
+ string: '{"payment_type":"permata","transaction_details":{"order_id":1554320900,"gross_amount":100000}}'
headers:
User-Agent:
- - Veritrans ruby gem 2.0.0beta
+ - Veritrans ruby gem 2.3.0
Authorization:
- Basic VlQtc2VydmVyLTlIdGItUnhYa2c3LTdoem5TQ0NqeHZvWTo=
Accept:
- application/json
Content-Type:
- application/json
response:
status:
code: 200
- message: ''
+ message: OK
headers:
- Server:
- - nginx/1.5.13
Date:
- - Tue, 04 Nov 2014 14:16:31 GMT
+ - Wed, 03 Apr 2019 19:48:20 GMT
Content-Type:
- application/json
Content-Length:
- - '381'
+ - '432'
Connection:
- keep-alive
+ Vary:
+ - Accept-Encoding
Cache-Control:
- no-cache
Pragma:
- no-cache
Expires:
- Wed, 31 Dec 1969 17:00:00 GMT
+ X-Kong-Upstream-Latency:
+ - '202'
+ X-Kong-Proxy-Latency:
+ - '1'
+ Via:
+ - kong/0.14.0
+ Strict-Transport-Security:
+ - max-age=15724800; includeSubDomains;
body:
- encoding: UTF-8
+ encoding: ASCII-8BIT
string: |-
{
"status_code" : "201",
"status_message" : "Success, PERMATA VA transaction is successful",
- "transaction_id" : "2e008228-43cf-4f49-9299-329fa239e48b",
- "order_id" : "1415110500",
+ "transaction_id" : "4991d60f-c8d4-49b6-bfd9-2751681fdcab",
+ "order_id" : "1554320900",
+ "gross_amount" : "100000.00",
+ "currency" : "IDR",
"payment_type" : "bank_transfer",
- "transaction_time" : "2014-11-04 21:16:51",
+ "transaction_time" : "2019-04-04 02:48:20",
"transaction_status" : "pending",
- "permata_va_number" : "8778990000000021",
- "gross_amount" : "100000.00"
+ "fraud_status" : "accept",
+ "permata_va_number" : "8778001842689488"
}
http_version:
- recorded_at: Tue, 04 Nov 2014 14:15:00 GMT
+ recorded_at: Wed, 03 Apr 2019 19:48:20 GMT
- request:
method: get
- uri: https://api.sandbox.midtrans.com/v2/1415110500/status
+ uri: https://api.sandbox.midtrans.com/v2/1554320900/status
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- - Veritrans ruby gem 2.0.0beta
+ - Veritrans ruby gem 2.3.0
Authorization:
- Basic VlQtc2VydmVyLTlIdGItUnhYa2c3LTdoem5TQ0NqeHZvWTo=
Accept:
- application/json
Content-Type:
- application/json
response:
status:
code: 200
- message: ''
+ message: OK
headers:
- Server:
- - nginx/1.5.13
Date:
- - Tue, 04 Nov 2014 14:16:32 GMT
+ - Wed, 03 Apr 2019 19:48:21 GMT
Content-Type:
- application/json
Content-Length:
- - '470'
+ - '568'
Connection:
- keep-alive
+ Vary:
+ - Accept-Encoding, Accept-Encoding, User-Agent
Cache-Control:
- no-cache
Pragma:
- no-cache
Expires:
- Wed, 31 Dec 1969 17:00:00 GMT
- Vary:
- - Accept-Encoding, User-Agent
+ X-Kong-Upstream-Latency:
+ - '45'
+ X-Kong-Proxy-Latency:
+ - '27'
+ Via:
+ - kong/0.14.0
+ Strict-Transport-Security:
+ - max-age=15724800; includeSubDomains;
body:
- encoding: UTF-8
+ encoding: ASCII-8BIT
string: |-
{
"status_code" : "201",
- "status_message" : "Success, transaction found",
- "transaction_id" : "2e008228-43cf-4f49-9299-329fa239e48b",
- "order_id" : "1415110500",
+ "status_message" : "Success, transaction is found",
+ "transaction_id" : "4991d60f-c8d4-49b6-bfd9-2751681fdcab",
+ "order_id" : "1554320900",
+ "gross_amount" : "100000.00",
+ "currency" : "IDR",
"payment_type" : "bank_transfer",
- "transaction_time" : "2014-11-04 21:16:51",
+ "transaction_time" : "2019-04-04 02:48:20",
"transaction_status" : "pending",
- "signature_key" : "6a79b17ff900a9f991b7b16c693e4a8b00843c65d09657fdf586be77597f87fa573c9b8e9aad78784f3208a1ab61f005cc337ef6f763235e282e975bbbf2e0ce",
- "gross_amount" : "100000.00"
+ "fraud_status" : "accept",
+ "permata_va_number" : "8778001842689488",
+ "signature_key" : "9b0a7d1b2672b148d869c5b1135603f08cc043ef353602045df299712d1c858415ed2acada1c618a997a5a9e635791ecfda46d7d61a8d6dd13e6d5821a669a75"
}
http_version:
- recorded_at: Tue, 04 Nov 2014 14:15:01 GMT
-recorded_with: VCR 2.9.3
+ recorded_at: Wed, 03 Apr 2019 19:48:21 GMT
+recorded_with: VCR 4.0.0