veritrans 2.1.2 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +10 -1
- data/.idea/.gitignore +8 -0
- data/.rubocop.yml +35 -0
- data/.travis.yml +10 -5
- data/CHANGELOG.md +45 -0
- data/Gemfile +6 -7
- data/Gemfile.lock +134 -146
- data/Maintaining.MD +8 -0
- data/README.md +266 -226
- data/api_reference.md +534 -143
- data/example/coreapi/core_api_credit_card_example.rb +66 -0
- data/example/coreapi/readme.md +4 -0
- data/example/sinatra/Gemfile +7 -0
- data/example/sinatra/README.md +6 -0
- data/example/sinatra/index.erb +202 -0
- data/example/sinatra/response.erb +1 -0
- data/example/sinatra/snap.erb +33 -0
- data/example/sinatra/snap_redirect.erb +10 -0
- data/example/sinatra/webapp.rb +113 -0
- data/example/snap/readme.md +4 -0
- data/example/snap/snap_example.rb +39 -0
- data/lib/test/all.rb +1 -0
- data/lib/test/api_test.rb +319 -0
- data/lib/test/config_test.rb +26 -0
- data/lib/test/gopay_tokenization_test.rb +80 -0
- data/lib/test/snap_test.rb +79 -0
- data/lib/test/subscription_test.rb +116 -0
- data/lib/test/transaction_test.rb +160 -0
- data/lib/veritrans/api.rb +146 -22
- data/lib/veritrans/client.rb +48 -12
- data/lib/veritrans/config.rb +31 -6
- data/lib/veritrans/events.rb +46 -35
- data/lib/veritrans/midtrans_error.rb +15 -0
- data/lib/veritrans/result.rb +66 -5
- data/lib/veritrans/version.rb +1 -1
- data/lib/veritrans.rb +121 -12
- data/veritrans.gemspec +2 -9
- metadata +30 -146
- data/.rspec +0 -2
- data/Procfile +0 -1
- data/Rakefile +0 -16
- data/bin/midtrans +0 -3
- data/bin/veritrans +0 -68
- data/example/README.md +0 -8
- data/example/config.ru +0 -6
- data/example/index.erb +0 -213
- data/example/localization.erb +0 -248
- data/example/points.erb +0 -187
- data/example/recurring.erb +0 -201
- data/example/response.erb +0 -37
- data/example/sinatra.rb +0 -188
- data/example/style.css +0 -126
- data/example/veritrans.yml +0 -11
- data/example/widget.erb +0 -51
- data/lib/generators/templates/assets/credit_card_form.js +0 -51
- data/lib/generators/templates/payments_controller.rb +0 -85
- data/lib/generators/templates/veritrans.rb +0 -46
- data/lib/generators/templates/veritrans.yml +0 -18
- data/lib/generators/templates/views/_credit_card_form.erb +0 -42
- data/lib/generators/templates/views/_veritrans_include.erb +0 -10
- data/lib/generators/templates/views/payments/create.erb +0 -15
- data/lib/generators/templates/views/payments/new.erb +0 -6
- data/lib/generators/veritrans/install_generator.rb +0 -32
- data/lib/generators/veritrans/payment_form_generator.rb +0 -45
- data/lib/veritrans/cli.rb +0 -155
- data/lib/veritrans/core_extensions.rb +0 -32
- data/spec/cli_spec.rb +0 -83
- data/spec/configs/real_key.yml +0 -4
- data/spec/configs/veritrans.yml +0 -7
- data/spec/configs/veritrans_flat.yml +0 -2
- data/spec/configs/veritrans_with_erb.yml +0 -2
- data/spec/fixtures/approve_failed.yml +0 -48
- data/spec/fixtures/cancel_failed.yml +0 -48
- data/spec/fixtures/cancel_success.yml +0 -106
- data/spec/fixtures/capture_failed.yml +0 -48
- data/spec/fixtures/charge.yml +0 -50
- data/spec/fixtures/charge_direct.yml +0 -56
- data/spec/fixtures/charge_vtweb.yml +0 -50
- data/spec/fixtures/cli_test_1111-not-exists.yml +0 -45
- data/spec/fixtures/cli_test_not_exists.yml +0 -45
- data/spec/fixtures/cli_test_real_txn.yml +0 -55
- data/spec/fixtures/cli_test_unauthorized.yml +0 -47
- data/spec/fixtures/events_test_real_txn.yml +0 -55
- data/spec/fixtures/expire_failed.yml +0 -50
- data/spec/fixtures/expire_success.yml +0 -56
- data/spec/fixtures/midtrans_status.yml +0 -117
- data/spec/fixtures/status_fail.yml +0 -46
- data/spec/fixtures/status_success.yml +0 -109
- data/spec/midtrans_rename_spec.rb +0 -27
- data/spec/rails_plugin_spec.rb +0 -281
- data/spec/spec_helper.rb +0 -61
- data/spec/veritrans_client_spec.rb +0 -184
- data/spec/veritrans_config_spec.rb +0 -70
- data/spec/veritrans_events_spec.rb +0 -72
- data/spec/veritrans_logger_spec.rb +0 -46
- data/spec/veritrans_snap_spec.rb +0 -39
- data/testing_webhooks.md +0 -78
@@ -1,50 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api.sandbox.veritrans.co.id/v2/charge
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"payment_type":"vtweb","transaction_details":{"order_id":"2014-11-04
|
9
|
-
21:10:15 +0700","gross_amount":100000}}'
|
10
|
-
headers:
|
11
|
-
User-Agent:
|
12
|
-
- Veritrans ruby gem 2.0.0beta
|
13
|
-
Authorization:
|
14
|
-
- Basic VlQtc2VydmVyLTlIdGItUnhYa2c3LTdoem5TQ0NqeHZvWTo=
|
15
|
-
Accept:
|
16
|
-
- application/json
|
17
|
-
Content-Type:
|
18
|
-
- application/json
|
19
|
-
response:
|
20
|
-
status:
|
21
|
-
code: 200
|
22
|
-
message: ''
|
23
|
-
headers:
|
24
|
-
Server:
|
25
|
-
- nginx/1.5.13
|
26
|
-
Date:
|
27
|
-
- Tue, 04 Nov 2014 14:11:46 GMT
|
28
|
-
Content-Type:
|
29
|
-
- application/json
|
30
|
-
Content-Length:
|
31
|
-
- '217'
|
32
|
-
Connection:
|
33
|
-
- keep-alive
|
34
|
-
Cache-Control:
|
35
|
-
- no-cache
|
36
|
-
Pragma:
|
37
|
-
- no-cache
|
38
|
-
Expires:
|
39
|
-
- Wed, 31 Dec 1969 17:00:00 GMT
|
40
|
-
body:
|
41
|
-
encoding: UTF-8
|
42
|
-
string: |-
|
43
|
-
{
|
44
|
-
"status_code" : "201",
|
45
|
-
"status_message" : "OK, success do VTWeb transaction, please go to redirect_url",
|
46
|
-
"redirect_url" : "https://vtweb.sandbox.veritrans.co.id/v2/vtweb/aff32361-ad6b-4e3f-9173-95b057e68157"
|
47
|
-
}
|
48
|
-
http_version:
|
49
|
-
recorded_at: Tue, 04 Nov 2014 14:10:15 GMT
|
50
|
-
recorded_with: VCR 2.9.3
|
@@ -1,45 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.sandbox.veritrans.co.id/v2/1111-not-exists/status
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Veritrans ruby gem 2.0.0beta
|
12
|
-
Authorization:
|
13
|
-
- Basic VlQtc2VydmVyLTlIdGItUnhYa2c3LTdoem5TQ0NqeHZvWTo=
|
14
|
-
Accept:
|
15
|
-
- application/json
|
16
|
-
Content-Type:
|
17
|
-
- application/json
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: ''
|
22
|
-
headers:
|
23
|
-
Server:
|
24
|
-
- nginx
|
25
|
-
Date:
|
26
|
-
- Mon, 01 Dec 2014 05:19:25 GMT
|
27
|
-
Content-Type:
|
28
|
-
- application/json
|
29
|
-
Connection:
|
30
|
-
- keep-alive
|
31
|
-
Cache-Control:
|
32
|
-
- no-cache
|
33
|
-
Pragma:
|
34
|
-
- no-cache
|
35
|
-
Expires:
|
36
|
-
- Wed, 31 Dec 1969 17:00:00 GMT
|
37
|
-
Strict-Transport-Security:
|
38
|
-
- max-age=31536000; includeSubdomains;
|
39
|
-
body:
|
40
|
-
encoding: US-ASCII
|
41
|
-
string: ! "{\n \"status_code\" : \"404\",\n \"status_message\" : \"The requested
|
42
|
-
resource is not found\"\n}"
|
43
|
-
http_version:
|
44
|
-
recorded_at: Mon, 01 Dec 2014 05:19:46 GMT
|
45
|
-
recorded_with: VCR 2.9.3
|
@@ -1,45 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.sandbox.veritrans.co.id/v2/1111-not-exists/status
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Veritrans ruby gem 2.0.0beta
|
12
|
-
Authorization:
|
13
|
-
- Basic VlQtc2VydmVyLTlIdGItUnhYa2c3LTdoem5TQ0NqeHZvWTo=
|
14
|
-
Accept:
|
15
|
-
- application/json
|
16
|
-
Content-Type:
|
17
|
-
- application/json
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: ''
|
22
|
-
headers:
|
23
|
-
Server:
|
24
|
-
- nginx
|
25
|
-
Date:
|
26
|
-
- Mon, 01 Dec 2014 08:10:32 GMT
|
27
|
-
Content-Type:
|
28
|
-
- application/json
|
29
|
-
Connection:
|
30
|
-
- keep-alive
|
31
|
-
Cache-Control:
|
32
|
-
- no-cache
|
33
|
-
Pragma:
|
34
|
-
- no-cache
|
35
|
-
Expires:
|
36
|
-
- Wed, 31 Dec 1969 17:00:00 GMT
|
37
|
-
Strict-Transport-Security:
|
38
|
-
- max-age=31536000; includeSubdomains;
|
39
|
-
body:
|
40
|
-
encoding: US-ASCII
|
41
|
-
string: ! "{\n \"status_code\" : \"404\",\n \"status_message\" : \"The requested
|
42
|
-
resource is not found\"\n}"
|
43
|
-
http_version:
|
44
|
-
recorded_at: Mon, 01 Dec 2014 08:10:52 GMT
|
45
|
-
recorded_with: VCR 2.9.3
|
@@ -1,55 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.sandbox.veritrans.co.id/v2/testing-0.2703-1415600236/status
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Veritrans ruby gem 2.0.0beta
|
12
|
-
Authorization:
|
13
|
-
- Basic VlQtc2VydmVyLTlIdGItUnhYa2c3LTdoem5TQ0NqeHZvWTo=
|
14
|
-
Accept:
|
15
|
-
- application/json
|
16
|
-
Content-Type:
|
17
|
-
- application/json
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: ''
|
22
|
-
headers:
|
23
|
-
Server:
|
24
|
-
- nginx
|
25
|
-
Date:
|
26
|
-
- Mon, 01 Dec 2014 08:23:11 GMT
|
27
|
-
Content-Type:
|
28
|
-
- application/json
|
29
|
-
Content-Length:
|
30
|
-
- '602'
|
31
|
-
Connection:
|
32
|
-
- keep-alive
|
33
|
-
Cache-Control:
|
34
|
-
- no-cache
|
35
|
-
Pragma:
|
36
|
-
- no-cache
|
37
|
-
Expires:
|
38
|
-
- Wed, 31 Dec 1969 17:00:00 GMT
|
39
|
-
Vary:
|
40
|
-
- Accept-Encoding, User-Agent
|
41
|
-
Strict-Transport-Security:
|
42
|
-
- max-age=31536000; includeSubdomains;
|
43
|
-
body:
|
44
|
-
encoding: US-ASCII
|
45
|
-
string: ! "{\n \"status_code\" : \"200\",\n \"status_message\" : \"Success,
|
46
|
-
transaction found\",\n \"transaction_id\" : \"b1cbcc66-5608-4af1-a3ed-0f152f9ed871\",\n
|
47
|
-
\ \"masked_card\" : \"481111-1114\",\n \"order_id\" : \"testing-0.2703-1415600236\",\n
|
48
|
-
\ \"payment_type\" : \"credit_card\",\n \"transaction_time\" : \"2014-11-10
|
49
|
-
13:17:33\",\n \"transaction_status\" : \"settlement\",\n \"fraud_status\"
|
50
|
-
: \"accept\",\n \"approval_code\" : \"1415600254322\",\n \"signature_key\"
|
51
|
-
: \"90da23d37a4ba8fc717990c35240948ab5a97cad71e46777de77b0fe468ffac8624dc09a80a422671f1f9a56f20956ccbe16c91074327c0ba5a33c8974c8973c\",\n
|
52
|
-
\ \"bank\" : \"bni\",\n \"gross_amount\" : \"30000.00\"\n}"
|
53
|
-
http_version:
|
54
|
-
recorded_at: Mon, 01 Dec 2014 08:23:31 GMT
|
55
|
-
recorded_with: VCR 2.9.3
|
@@ -1,47 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.sandbox.veritrans.co.id/v2/1111-not-exists/status
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Veritrans ruby gem 2.0.0beta
|
12
|
-
Authorization:
|
13
|
-
- Basic c3BlY19zZXJ2ZXJfa2V5Og==
|
14
|
-
Accept:
|
15
|
-
- application/json
|
16
|
-
Content-Type:
|
17
|
-
- application/json
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: ''
|
22
|
-
headers:
|
23
|
-
Server:
|
24
|
-
- nginx
|
25
|
-
Date:
|
26
|
-
- Mon, 01 Dec 2014 08:12:49 GMT
|
27
|
-
Content-Type:
|
28
|
-
- application/json
|
29
|
-
Content-Length:
|
30
|
-
- '132'
|
31
|
-
Connection:
|
32
|
-
- keep-alive
|
33
|
-
Cache-Control:
|
34
|
-
- no-cache
|
35
|
-
Pragma:
|
36
|
-
- no-cache
|
37
|
-
Expires:
|
38
|
-
- Wed, 31 Dec 1969 17:00:00 GMT
|
39
|
-
Strict-Transport-Security:
|
40
|
-
- max-age=31536000; includeSubdomains;
|
41
|
-
body:
|
42
|
-
encoding: US-ASCII
|
43
|
-
string: ! "{\n \"status_code\" : \"401\",\n \"status_message\" : \"Access
|
44
|
-
denied due to unauthorized transaction, please check client or server key\"\n}"
|
45
|
-
http_version:
|
46
|
-
recorded_at: Mon, 01 Dec 2014 08:13:09 GMT
|
47
|
-
recorded_with: VCR 2.9.3
|
@@ -1,55 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.sandbox.veritrans.co.id/v2/testing-0.2703-1415600236/status
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Veritrans ruby gem 2.0.0beta
|
12
|
-
Authorization:
|
13
|
-
- Basic VlQtc2VydmVyLTlIdGItUnhYa2c3LTdoem5TQ0NqeHZvWTo=
|
14
|
-
Accept:
|
15
|
-
- application/json
|
16
|
-
Content-Type:
|
17
|
-
- application/json
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: ''
|
22
|
-
headers:
|
23
|
-
Server:
|
24
|
-
- nginx
|
25
|
-
Date:
|
26
|
-
- Mon, 01 Dec 2014 08:35:12 GMT
|
27
|
-
Content-Type:
|
28
|
-
- application/json
|
29
|
-
Content-Length:
|
30
|
-
- '602'
|
31
|
-
Connection:
|
32
|
-
- keep-alive
|
33
|
-
Cache-Control:
|
34
|
-
- no-cache
|
35
|
-
Pragma:
|
36
|
-
- no-cache
|
37
|
-
Expires:
|
38
|
-
- Wed, 31 Dec 1969 17:00:00 GMT
|
39
|
-
Vary:
|
40
|
-
- Accept-Encoding, User-Agent
|
41
|
-
Strict-Transport-Security:
|
42
|
-
- max-age=31536000; includeSubdomains;
|
43
|
-
body:
|
44
|
-
encoding: US-ASCII
|
45
|
-
string: ! "{\n \"status_code\" : \"200\",\n \"status_message\" : \"Success,
|
46
|
-
transaction found\",\n \"transaction_id\" : \"b1cbcc66-5608-4af1-a3ed-0f152f9ed871\",\n
|
47
|
-
\ \"masked_card\" : \"481111-1114\",\n \"order_id\" : \"testing-0.2703-1415600236\",\n
|
48
|
-
\ \"payment_type\" : \"credit_card\",\n \"transaction_time\" : \"2014-11-10
|
49
|
-
13:17:33\",\n \"transaction_status\" : \"settlement\",\n \"fraud_status\"
|
50
|
-
: \"accept\",\n \"approval_code\" : \"1415600254322\",\n \"signature_key\"
|
51
|
-
: \"90da23d37a4ba8fc717990c35240948ab5a97cad71e46777de77b0fe468ffac8624dc09a80a422671f1f9a56f20956ccbe16c91074327c0ba5a33c8974c8973c\",\n
|
52
|
-
\ \"bank\" : \"bni\",\n \"gross_amount\" : \"30000.00\"\n}"
|
53
|
-
http_version:
|
54
|
-
recorded_at: Mon, 01 Dec 2014 08:35:32 GMT
|
55
|
-
recorded_with: VCR 2.9.3
|
@@ -1,50 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api.sandbox.veritrans.co.id/v2/not-exists/expire
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: "{}"
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Veritrans ruby gem 2.0.2
|
12
|
-
Authorization:
|
13
|
-
- Basic VlQtc2VydmVyLW9iQWdUTms0NW9jYUpWUGlGTXRRLXFmNjo=
|
14
|
-
Accept:
|
15
|
-
- application/json
|
16
|
-
Content-Type:
|
17
|
-
- application/json
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: ''
|
22
|
-
headers:
|
23
|
-
Server:
|
24
|
-
- nginx
|
25
|
-
Date:
|
26
|
-
- Fri, 19 Jun 2015 05:29:53 GMT
|
27
|
-
Content-Type:
|
28
|
-
- application/json
|
29
|
-
Content-Length:
|
30
|
-
- '87'
|
31
|
-
Connection:
|
32
|
-
- keep-alive
|
33
|
-
Cache-Control:
|
34
|
-
- no-cache
|
35
|
-
Pragma:
|
36
|
-
- no-cache
|
37
|
-
Expires:
|
38
|
-
- Wed, 31 Dec 1969 17:00:00 GMT
|
39
|
-
Strict-Transport-Security:
|
40
|
-
- max-age=31536000; includeSubdomains;
|
41
|
-
body:
|
42
|
-
encoding: UTF-8
|
43
|
-
string: |-
|
44
|
-
{
|
45
|
-
"status_code" : "404",
|
46
|
-
"status_message" : "The requested resource is not found"
|
47
|
-
}
|
48
|
-
http_version:
|
49
|
-
recorded_at: Fri, 19 Jun 2015 05:23:02 GMT
|
50
|
-
recorded_with: VCR 2.9.3
|
@@ -1,56 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api.sandbox.veritrans.co.id/v2/af3fb136-c405-4103-9a36-5a6a9e2855a9/expire
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: 'null'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Veritrans ruby gem 2.0.2
|
12
|
-
Authorization:
|
13
|
-
- Basic NjJiMTVhN2QtZTVmOC00YjNjLTllYWItY2E4MjdjYTM3ZjU1Og==
|
14
|
-
Accept:
|
15
|
-
- application/json
|
16
|
-
Content-Type:
|
17
|
-
- application/json
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: ''
|
22
|
-
headers:
|
23
|
-
Server:
|
24
|
-
- nginx
|
25
|
-
Date:
|
26
|
-
- Fri, 19 Jun 2015 06:21:11 GMT
|
27
|
-
Content-Type:
|
28
|
-
- application/json
|
29
|
-
Content-Length:
|
30
|
-
- '339'
|
31
|
-
Connection:
|
32
|
-
- keep-alive
|
33
|
-
Cache-Control:
|
34
|
-
- no-cache
|
35
|
-
Pragma:
|
36
|
-
- no-cache
|
37
|
-
Expires:
|
38
|
-
- Wed, 31 Dec 1969 17:00:00 GMT
|
39
|
-
Strict-Transport-Security:
|
40
|
-
- max-age=31536000; includeSubdomains;
|
41
|
-
body:
|
42
|
-
encoding: UTF-8
|
43
|
-
string: |-
|
44
|
-
{
|
45
|
-
"status_code" : "407",
|
46
|
-
"status_message" : "Success, transaction has expired",
|
47
|
-
"transaction_id" : "af3fb136-c405-4103-9a36-5a6a9e2855a9",
|
48
|
-
"order_id" : "e15dd6fa56-190615060748696",
|
49
|
-
"payment_type" : "bank_transfer",
|
50
|
-
"transaction_time" : "2015-06-19 13:09:05",
|
51
|
-
"transaction_status" : "expire",
|
52
|
-
"gross_amount" : "231231.00"
|
53
|
-
}
|
54
|
-
http_version:
|
55
|
-
recorded_at: Fri, 19 Jun 2015 06:15:19 GMT
|
56
|
-
recorded_with: VCR 2.9.3
|
@@ -1,117 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api.sandbox.veritrans.co.id/v2/charge
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"payment_type":"permata","transaction_details":{"order_id":"2016-10-20
|
9
|
-
12:39:16 +0700","gross_amount":100000}}'
|
10
|
-
headers:
|
11
|
-
User-Agent:
|
12
|
-
- Veritrans ruby gem 2.1.2
|
13
|
-
Authorization:
|
14
|
-
- Basic VlQtc2VydmVyLTlIdGItUnhYa2c3LTdoem5TQ0NqeHZvWTo=
|
15
|
-
Accept:
|
16
|
-
- application/json
|
17
|
-
Content-Type:
|
18
|
-
- application/json
|
19
|
-
response:
|
20
|
-
status:
|
21
|
-
code: 200
|
22
|
-
message: ''
|
23
|
-
headers:
|
24
|
-
Server:
|
25
|
-
- nginx
|
26
|
-
Date:
|
27
|
-
- Thu, 20 Oct 2016 05:39:18 GMT
|
28
|
-
Content-Type:
|
29
|
-
- application/json
|
30
|
-
Content-Length:
|
31
|
-
- '425'
|
32
|
-
Connection:
|
33
|
-
- keep-alive
|
34
|
-
Cache-Control:
|
35
|
-
- no-cache
|
36
|
-
Pragma:
|
37
|
-
- no-cache
|
38
|
-
Expires:
|
39
|
-
- Wed, 31 Dec 1969 17:00:00 GMT
|
40
|
-
Strict-Transport-Security:
|
41
|
-
- max-age=63072000; includeSubdomains; preload
|
42
|
-
body:
|
43
|
-
encoding: ASCII-8BIT
|
44
|
-
string: |-
|
45
|
-
{
|
46
|
-
"status_code" : "201",
|
47
|
-
"status_message" : "Success, PERMATA VA transaction is successful",
|
48
|
-
"transaction_id" : "365ea37f-db35-4b24-9a93-b1fa3fde4780",
|
49
|
-
"order_id" : "2016-10-20 12:39:16 +0700",
|
50
|
-
"gross_amount" : "100000.00",
|
51
|
-
"payment_type" : "bank_transfer",
|
52
|
-
"transaction_time" : "2016-10-20 12:39:12",
|
53
|
-
"transaction_status" : "pending",
|
54
|
-
"fraud_status" : "accept",
|
55
|
-
"permata_va_number" : "8778006742354093"
|
56
|
-
}
|
57
|
-
http_version:
|
58
|
-
recorded_at: Thu, 20 Oct 2016 05:39:18 GMT
|
59
|
-
- request:
|
60
|
-
method: get
|
61
|
-
uri: https://api.sandbox.veritrans.co.id/v2/2016-10-20%2012:39:16%20+0700/status
|
62
|
-
body:
|
63
|
-
encoding: US-ASCII
|
64
|
-
string: ''
|
65
|
-
headers:
|
66
|
-
User-Agent:
|
67
|
-
- Veritrans ruby gem 2.1.2
|
68
|
-
Authorization:
|
69
|
-
- Basic VlQtc2VydmVyLTlIdGItUnhYa2c3LTdoem5TQ0NqeHZvWTo=
|
70
|
-
Accept:
|
71
|
-
- application/json
|
72
|
-
Content-Type:
|
73
|
-
- application/json
|
74
|
-
response:
|
75
|
-
status:
|
76
|
-
code: 200
|
77
|
-
message: ''
|
78
|
-
headers:
|
79
|
-
Server:
|
80
|
-
- nginx
|
81
|
-
Date:
|
82
|
-
- Thu, 20 Oct 2016 05:39:18 GMT
|
83
|
-
Content-Type:
|
84
|
-
- application/json
|
85
|
-
Content-Length:
|
86
|
-
- '561'
|
87
|
-
Connection:
|
88
|
-
- keep-alive
|
89
|
-
Cache-Control:
|
90
|
-
- no-cache
|
91
|
-
Pragma:
|
92
|
-
- no-cache
|
93
|
-
Expires:
|
94
|
-
- Wed, 31 Dec 1969 17:00:00 GMT
|
95
|
-
Vary:
|
96
|
-
- Accept-Encoding, User-Agent
|
97
|
-
Strict-Transport-Security:
|
98
|
-
- max-age=63072000; includeSubdomains; preload
|
99
|
-
body:
|
100
|
-
encoding: ASCII-8BIT
|
101
|
-
string: |-
|
102
|
-
{
|
103
|
-
"status_code" : "201",
|
104
|
-
"status_message" : "Success, transaction is found",
|
105
|
-
"transaction_id" : "365ea37f-db35-4b24-9a93-b1fa3fde4780",
|
106
|
-
"order_id" : "2016-10-20 12:39:16 +0700",
|
107
|
-
"gross_amount" : "100000.00",
|
108
|
-
"payment_type" : "bank_transfer",
|
109
|
-
"transaction_time" : "2016-10-20 12:39:12",
|
110
|
-
"transaction_status" : "pending",
|
111
|
-
"fraud_status" : "accept",
|
112
|
-
"permata_va_number" : "8778006742354093",
|
113
|
-
"signature_key" : "bbdb81aead6f9262e6c184fa4fabf615189e92619c654895b8adee538bd1b1100688bc54fd3fd5b26a78ef56175cd5946daefcea41e5fe0abd575c60d9f196fd"
|
114
|
-
}
|
115
|
-
http_version:
|
116
|
-
recorded_at: Thu, 20 Oct 2016 05:39:18 GMT
|
117
|
-
recorded_with: VCR 3.0.3
|
@@ -1,46 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.sandbox.veritrans.co.id/v2/not-exists/status
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Veritrans ruby gem 2.0.0beta
|
12
|
-
Authorization:
|
13
|
-
- Basic VlQtc2VydmVyLTlIdGItUnhYa2c3LTdoem5TQ0NqeHZvWTo=
|
14
|
-
Accept:
|
15
|
-
- application/json
|
16
|
-
Content-Type:
|
17
|
-
- application/json
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: ''
|
22
|
-
headers:
|
23
|
-
Server:
|
24
|
-
- nginx/1.5.13
|
25
|
-
Date:
|
26
|
-
- Tue, 04 Nov 2014 14:11:31 GMT
|
27
|
-
Content-Type:
|
28
|
-
- application/json
|
29
|
-
Connection:
|
30
|
-
- keep-alive
|
31
|
-
Cache-Control:
|
32
|
-
- no-cache
|
33
|
-
Pragma:
|
34
|
-
- no-cache
|
35
|
-
Expires:
|
36
|
-
- Wed, 31 Dec 1969 17:00:00 GMT
|
37
|
-
body:
|
38
|
-
encoding: UTF-8
|
39
|
-
string: |-
|
40
|
-
{
|
41
|
-
"status_code" : "404",
|
42
|
-
"status_message" : "The requested resource is not found"
|
43
|
-
}
|
44
|
-
http_version:
|
45
|
-
recorded_at: Tue, 04 Nov 2014 14:10:00 GMT
|
46
|
-
recorded_with: VCR 2.9.3
|
@@ -1,109 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api.sandbox.veritrans.co.id/v2/charge
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"payment_type":"permata","transaction_details":{"order_id":1415110500,"gross_amount":100000}}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Veritrans ruby gem 2.0.0beta
|
12
|
-
Authorization:
|
13
|
-
- Basic VlQtc2VydmVyLTlIdGItUnhYa2c3LTdoem5TQ0NqeHZvWTo=
|
14
|
-
Accept:
|
15
|
-
- application/json
|
16
|
-
Content-Type:
|
17
|
-
- application/json
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: ''
|
22
|
-
headers:
|
23
|
-
Server:
|
24
|
-
- nginx/1.5.13
|
25
|
-
Date:
|
26
|
-
- Tue, 04 Nov 2014 14:16:31 GMT
|
27
|
-
Content-Type:
|
28
|
-
- application/json
|
29
|
-
Content-Length:
|
30
|
-
- '381'
|
31
|
-
Connection:
|
32
|
-
- keep-alive
|
33
|
-
Cache-Control:
|
34
|
-
- no-cache
|
35
|
-
Pragma:
|
36
|
-
- no-cache
|
37
|
-
Expires:
|
38
|
-
- Wed, 31 Dec 1969 17:00:00 GMT
|
39
|
-
body:
|
40
|
-
encoding: UTF-8
|
41
|
-
string: |-
|
42
|
-
{
|
43
|
-
"status_code" : "201",
|
44
|
-
"status_message" : "Success, PERMATA VA transaction is successful",
|
45
|
-
"transaction_id" : "2e008228-43cf-4f49-9299-329fa239e48b",
|
46
|
-
"order_id" : "1415110500",
|
47
|
-
"payment_type" : "bank_transfer",
|
48
|
-
"transaction_time" : "2014-11-04 21:16:51",
|
49
|
-
"transaction_status" : "pending",
|
50
|
-
"permata_va_number" : "8778990000000021",
|
51
|
-
"gross_amount" : "100000.00"
|
52
|
-
}
|
53
|
-
http_version:
|
54
|
-
recorded_at: Tue, 04 Nov 2014 14:15:00 GMT
|
55
|
-
- request:
|
56
|
-
method: get
|
57
|
-
uri: https://api.sandbox.veritrans.co.id/v2/1415110500/status
|
58
|
-
body:
|
59
|
-
encoding: US-ASCII
|
60
|
-
string: ''
|
61
|
-
headers:
|
62
|
-
User-Agent:
|
63
|
-
- Veritrans ruby gem 2.0.0beta
|
64
|
-
Authorization:
|
65
|
-
- Basic VlQtc2VydmVyLTlIdGItUnhYa2c3LTdoem5TQ0NqeHZvWTo=
|
66
|
-
Accept:
|
67
|
-
- application/json
|
68
|
-
Content-Type:
|
69
|
-
- application/json
|
70
|
-
response:
|
71
|
-
status:
|
72
|
-
code: 200
|
73
|
-
message: ''
|
74
|
-
headers:
|
75
|
-
Server:
|
76
|
-
- nginx/1.5.13
|
77
|
-
Date:
|
78
|
-
- Tue, 04 Nov 2014 14:16:32 GMT
|
79
|
-
Content-Type:
|
80
|
-
- application/json
|
81
|
-
Content-Length:
|
82
|
-
- '470'
|
83
|
-
Connection:
|
84
|
-
- keep-alive
|
85
|
-
Cache-Control:
|
86
|
-
- no-cache
|
87
|
-
Pragma:
|
88
|
-
- no-cache
|
89
|
-
Expires:
|
90
|
-
- Wed, 31 Dec 1969 17:00:00 GMT
|
91
|
-
Vary:
|
92
|
-
- Accept-Encoding, User-Agent
|
93
|
-
body:
|
94
|
-
encoding: UTF-8
|
95
|
-
string: |-
|
96
|
-
{
|
97
|
-
"status_code" : "201",
|
98
|
-
"status_message" : "Success, transaction found",
|
99
|
-
"transaction_id" : "2e008228-43cf-4f49-9299-329fa239e48b",
|
100
|
-
"order_id" : "1415110500",
|
101
|
-
"payment_type" : "bank_transfer",
|
102
|
-
"transaction_time" : "2014-11-04 21:16:51",
|
103
|
-
"transaction_status" : "pending",
|
104
|
-
"signature_key" : "6a79b17ff900a9f991b7b16c693e4a8b00843c65d09657fdf586be77597f87fa573c9b8e9aad78784f3208a1ab61f005cc337ef6f763235e282e975bbbf2e0ce",
|
105
|
-
"gross_amount" : "100000.00"
|
106
|
-
}
|
107
|
-
http_version:
|
108
|
-
recorded_at: Tue, 04 Nov 2014 14:15:01 GMT
|
109
|
-
recorded_with: VCR 2.9.3
|