solidus_culqi 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/.travis.yml +2 -2
- data/Gemfile +6 -5
- data/README.md +7 -0
- data/app/models/solidus/gateway/culqi_gateway.rb +63 -19
- data/app/views/spree/checkout/existing_payment/_culqi.html.erb +3 -0
- data/db/migrate/20170919145201_add_installments_to_orders.rb +1 -1
- data/lib/solidus_culqi/gateway.rb +29 -0
- data/lib/solidus_culqi/support.rb +7 -0
- data/lib/solidus_culqi/version.rb +1 -1
- data/lib/solidus_culqi.rb +2 -0
- data/solidus_culqi.gemspec +2 -0
- data/spec/cassettes/Culqi_checkout/with_logged_user/store_card_in_wallet.yml +206 -0
- data/spec/cassettes/Culqi_checkout/with_unlogged_user/with_process_checkout/capture_payment.yml +207 -0
- data/spec/cassettes/Culqi_checkout/with_unlogged_user/with_process_checkout/process_order.yml +156 -0
- data/spec/cassettes/Culqi_checkout/with_unlogged_user/with_process_checkout/voids_a_payment.yml +207 -0
- data/spec/cassettes/Culqi_checkout_autocapture/with_valid_credit_card/can_process_a_valid_payment.yml +156 -0
- data/spec/cassettes/Culqi_checkout_autocapture/with_valid_credit_card/refunds_a_payment.yml +207 -0
- data/spec/features/culqi_checkout_autocapture_spec.rb +8 -8
- data/spec/features/culqi_checkout_spec.rb +71 -27
- data/spec/models/culqi_gateway.rb +16 -0
- data/spec/spec_helper.rb +16 -1
- data/spec/support/culqi_helper.rb +14 -6
- metadata +40 -2
data/spec/cassettes/Culqi_checkout/with_unlogged_user/with_process_checkout/capture_payment.yml
ADDED
@@ -0,0 +1,207 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.culqi.com/v2/customers/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Host:
|
17
|
+
- api.culqi.com
|
18
|
+
Authorization:
|
19
|
+
- Bearer sk_test_SpwICNI4YT0OSLHY
|
20
|
+
Content-Type:
|
21
|
+
- application/json
|
22
|
+
Cache-Control:
|
23
|
+
- no-cache
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Server:
|
30
|
+
- ":"
|
31
|
+
- nginx
|
32
|
+
Date:
|
33
|
+
- Thu, 12 Oct 2017 15:41:44 GMT
|
34
|
+
Content-Type:
|
35
|
+
- application/json;charset=UTF-8
|
36
|
+
Transfer-Encoding:
|
37
|
+
- chunked
|
38
|
+
Connection:
|
39
|
+
- keep-alive
|
40
|
+
Set-Cookie:
|
41
|
+
- JSESSIONID=42889C7DB345C62063B00CD80FE5C39D; Path=/api/; HttpOnly
|
42
|
+
X-Culqi-Tracking-Id:
|
43
|
+
- '1924600'
|
44
|
+
X-Culqi-Environment:
|
45
|
+
- test
|
46
|
+
X-Culqi-Version:
|
47
|
+
- 2.0.0
|
48
|
+
body:
|
49
|
+
encoding: ASCII-8BIT
|
50
|
+
string: !binary |-
|
51
|
+
eyJkYXRhIjpbeyJvYmplY3QiOiJjdXN0b21lciIsImlkIjoiY3VzX3Rlc3RfdnpzWkNZbmxkV1plT2JvZCIsImNyZWF0aW9uX2RhdGUiOjE1MDc4MjI4NTcwMDAsImVtYWlsIjoicm9sZkBtb3Jpc3NldHRlbHVib3dpdHouaW5mbyIsImFudGlmcmF1ZF9kZXRhaWxzIjp7ImZpcnN0X25hbWUiOiJIYW4iLCJsYXN0X25hbWUiOiJTb2xvIiwiYWRkcmVzcyI6IllULTEzMDAiLCJhZGRyZXNzX2NpdHkiOiJBbGFiYW1hIiwiY291bnRyeV9jb2RlIjoiVVMiLCJwaG9uZSI6IjU1NTU1NTU1NTUiLC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VtYmVyIjoiNzg5OTUzNjU1In19LHsib2JqZWN0IjoiY3VzdG9tZXIiLCJpZCI6ImN1c190ZXN0X2huZlFFWEVNWEpuUFpBNVUiLCJjcmVhdGlvbl9kYXRlIjoxNTA0MzcxNjI2MDAwLCJlbWFpbCI6InRlc3QzZDM5ZjhlNy1jNDgyLTQ3MTQtOGZmMS02NzYyNzljODVmNWRAY3VscWkuY29tIiwiYW50aWZyYXVkX2RldGFpbHMiOnsiZmlyc3RfbmFtZSI6IldpbGxpYW0iLCJsYXN0X25hbWUiOiJNdXJvIiwiYWRkcmVzcyI6IkF2ZW5pZGEgTGltYSAxMjMyMTMiLCJhZGRyZXNzX2NpdHkiOiJMSU1BIiwiY291bnRyeV9jb2RlIjoiUEUiLCJwaG9uZSI6Ijk5ODk4OTc4OSIsIm9iamVjdCI6ImNsaWVudCJ9LCJjYXJkcyI6W10sIm1ldGFkYXRhIjp7Im90aGVyX251bWJlciI6Ijc4OTk1MzY1NSJ9fV0sInBhZ2luZyI6eyJwcmV2aW91cyI6Imh0dHBzOi8vYXBpLmN1bHFpLmNvbS92Mi9jdXN0b21lcnM/bGltaXQ9NTAmYmVmb3JlPWN1c190ZXN0X3Z6c1pDWW5sZFdaZU9ib2QiLCJuZXh0IjoiaHR0cHM6Ly9hcGkuY3VscWkuY29tL3YyL2N1c3RvbWVycz9saW1pdD01MCZhZnRlcj1jdXNfdGVzdF9obmZRRVhFTVhKblBaQTVVIiwiY3Vyc29ycyI6eyJiZWZvcmUiOiJjdXNfdGVzdF92enNaQ1lubGRXWmVPYm9kIiwiYWZ0ZXIiOiJjdXNfdGVzdF9obmZRRVhFTVhKblBaQTVVIn19fQ==
|
52
|
+
http_version:
|
53
|
+
recorded_at: Thu, 12 Oct 2017 15:41:44 GMT
|
54
|
+
- request:
|
55
|
+
method: post
|
56
|
+
uri: https://api.culqi.com/v2/cards/
|
57
|
+
body:
|
58
|
+
encoding: UTF-8
|
59
|
+
string: '{"customer_id":"cus_test_5KekHsuSguEzjzh8","token_id":"tkn_test_bmgFvsXARYL9tFtr"}'
|
60
|
+
headers:
|
61
|
+
Accept-Encoding:
|
62
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
63
|
+
Accept:
|
64
|
+
- "*/*"
|
65
|
+
User-Agent:
|
66
|
+
- Ruby
|
67
|
+
Host:
|
68
|
+
- api.culqi.com
|
69
|
+
Authorization:
|
70
|
+
- Bearer sk_test_SpwICNI4YT0OSLHY
|
71
|
+
Content-Type:
|
72
|
+
- application/json
|
73
|
+
Cache-Control:
|
74
|
+
- no-cache
|
75
|
+
response:
|
76
|
+
status:
|
77
|
+
code: 201
|
78
|
+
message: Created
|
79
|
+
headers:
|
80
|
+
Server:
|
81
|
+
- ":"
|
82
|
+
- nginx
|
83
|
+
Date:
|
84
|
+
- Thu, 12 Oct 2017 15:41:48 GMT
|
85
|
+
Content-Type:
|
86
|
+
- application/json;charset=UTF-8
|
87
|
+
Transfer-Encoding:
|
88
|
+
- chunked
|
89
|
+
Connection:
|
90
|
+
- keep-alive
|
91
|
+
Set-Cookie:
|
92
|
+
- JSESSIONID=F3EA456912D4DC445C74FA7AC8826897; Path=/api/; HttpOnly
|
93
|
+
X-Culqi-Tracking-Id:
|
94
|
+
- '1924601'
|
95
|
+
X-Culqi-Environment:
|
96
|
+
- test
|
97
|
+
X-Culqi-Version:
|
98
|
+
- 2.0.0
|
99
|
+
body:
|
100
|
+
encoding: ASCII-8BIT
|
101
|
+
string: !binary |-
|
102
|
+
eyJvYmplY3QiOiJjYXJkIiwiaWQiOiJjcmRfdGVzdF9MWWZQWmtOWTBvQzlaVno1IiwiYWN0aXZlIjp0cnVlLCJjcmVhdGlvbl9kYXRlIjoxNTA3Nzg5MzMzMDAwLCJjdXN0b21lcl9pZCI6ImN1c190ZXN0XzVLZWtIc3VTZ3VFemp6aDgiLCJzb3VyY2UiOnsib2JqZWN0IjoidG9rZW4iLCJpZCI6InRrbl90ZXN0X2JtZ0Z2c1hBUllMOXRGdHIiLCJ0eXBlIjoiY2FyZCIsImNyZWF0aW9uX2RhdGUiOjE1MDc4MjI4OTgwMDAsImVtYWlsIjoiaGFuQGV4YW1wbGUuY29tIiwiY2FyZF9udW1iZXIiOiI0MTExMTEqKioqKioxMTExIiwibGFzdF9mb3VyIjoiMTExMSIsImFjdGl2ZSI6dHJ1ZSwiaWluIjp7Im9iamVjdCI6ImlpbiIsImJpbiI6IjQxMTExMSIsImNhcmRfYnJhbmQiOiJWaXNhIiwiY2FyZF90eXBlIjoiY3JlZGl0byIsImNhcmRfY2F0ZWdvcnkiOiJDbMOhc2ljYSIsImlzc3VlciI6eyJuYW1lIjoiSlBNT1JHQU4gQ0hBU0UgQkFOSywgTi5BLiIsImNvdW50cnkiOiJVTklURUQgU1RBVEVTIiwiY291bnRyeV9jb2RlIjoiVVMiLCJ3ZWJzaXRlIjpudWxsLCJwaG9uZV9udW1iZXIiOm51bGx9LCJpbnN0YWxsbWVudHNfYWxsb3dlZCI6WzIsNCw2LDgsMTAsMTJdfSwiY2xpZW50Ijp7ImlwIjoiMTc5LjcuMTUzLjIyNCIsImlwX2NvdW50cnkiOiJQZXLDuiIsImlwX2NvdW50cnlfY29kZSI6IlBFIiwiYnJvd3NlciI6bnVsbCwiZGV2aWNlX2ZpbmdlcnByaW50IjoiMTM0NzQwOTkzNSIsImRldmljZV90eXBlIjoiRXNjcml0b3JpbyJ9LCJtZXRhZGF0YSI6eyJjbGllbnRfaXAiOiIxNzkuNy4xNTMuMjI0In19LCJtZXRhZGF0YSI6e319
|
103
|
+
http_version:
|
104
|
+
recorded_at: Thu, 12 Oct 2017 15:41:48 GMT
|
105
|
+
- request:
|
106
|
+
method: post
|
107
|
+
uri: https://api.culqi.com/v2/charges/
|
108
|
+
body:
|
109
|
+
encoding: UTF-8
|
110
|
+
string: '{"amount":1999,"capture":false,"currency_code":"PEN","description":null,"email":"han@example.com","installments":2,"source_id":"crd_test_LYfPZkNY0oC9ZVz5"}'
|
111
|
+
headers:
|
112
|
+
Accept-Encoding:
|
113
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
114
|
+
Accept:
|
115
|
+
- "*/*"
|
116
|
+
User-Agent:
|
117
|
+
- Ruby
|
118
|
+
Host:
|
119
|
+
- api.culqi.com
|
120
|
+
Authorization:
|
121
|
+
- Bearer sk_test_SpwICNI4YT0OSLHY
|
122
|
+
Content-Type:
|
123
|
+
- application/json
|
124
|
+
Cache-Control:
|
125
|
+
- no-cache
|
126
|
+
response:
|
127
|
+
status:
|
128
|
+
code: 201
|
129
|
+
message: Created
|
130
|
+
headers:
|
131
|
+
Server:
|
132
|
+
- ":"
|
133
|
+
- nginx
|
134
|
+
Date:
|
135
|
+
- Thu, 12 Oct 2017 15:41:53 GMT
|
136
|
+
Content-Type:
|
137
|
+
- application/json;charset=UTF-8
|
138
|
+
Transfer-Encoding:
|
139
|
+
- chunked
|
140
|
+
Connection:
|
141
|
+
- keep-alive
|
142
|
+
Set-Cookie:
|
143
|
+
- JSESSIONID=8AC06CCAACAAB6F8048CC80FCCC8B056; Path=/api/; HttpOnly
|
144
|
+
X-Culqi-Tracking-Id:
|
145
|
+
- '1924608'
|
146
|
+
X-Culqi-Environment:
|
147
|
+
- test
|
148
|
+
X-Culqi-Version:
|
149
|
+
- 2.0.0
|
150
|
+
body:
|
151
|
+
encoding: ASCII-8BIT
|
152
|
+
string: !binary |-
|
153
|
+
eyJkdXBsaWNhdGVkIjpmYWxzZSwib2JqZWN0IjoiY2hhcmdlIiwiaWQiOiJjaHJfdGVzdF9Yd0RUejRUUmtFT0lqR0dXIiwiY3JlYXRpb25fZGF0ZSI6MTUwNzgyMjkxMjAwMCwiYW1vdW50IjoxOTk5LCJhbW91bnRfcmVmdW5kZWQiOjAsImN1cnJlbnRfYW1vdW50IjoxOTk5LCJpbnN0YWxsbWVudHMiOjIsImluc3RhbGxtZW50c19hbW91bnQiOjk5OSwiY3VycmVuY3lfY29kZSI6IlBFTiIsImVtYWlsIjoiaGFuQGV4YW1wb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RkEOIjGGW/capture/
|
159
|
+
body:
|
160
|
+
encoding: UTF-8
|
161
|
+
string: ''
|
162
|
+
headers:
|
163
|
+
Accept-Encoding:
|
164
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
165
|
+
Accept:
|
166
|
+
- "*/*"
|
167
|
+
User-Agent:
|
168
|
+
- Ruby
|
169
|
+
Host:
|
170
|
+
- api.culqi.com
|
171
|
+
Authorization:
|
172
|
+
- Bearer sk_test_SpwICNI4YT0OSLHY
|
173
|
+
Content-Type:
|
174
|
+
- application/json
|
175
|
+
Cache-Control:
|
176
|
+
- no-cache
|
177
|
+
response:
|
178
|
+
status:
|
179
|
+
code: 201
|
180
|
+
message: Created
|
181
|
+
headers:
|
182
|
+
Server:
|
183
|
+
- ":"
|
184
|
+
- nginx
|
185
|
+
Date:
|
186
|
+
- Thu, 12 Oct 2017 15:42:00 GMT
|
187
|
+
Content-Type:
|
188
|
+
- application/json;charset=UTF-8
|
189
|
+
Transfer-Encoding:
|
190
|
+
- chunked
|
191
|
+
Connection:
|
192
|
+
- keep-alive
|
193
|
+
Set-Cookie:
|
194
|
+
- JSESSIONID=68B80BCD089EA9ED5FFE4AFED12389B9; Path=/api/; HttpOnly
|
195
|
+
X-Culqi-Tracking-Id:
|
196
|
+
- '1924609'
|
197
|
+
X-Culqi-Environment:
|
198
|
+
- test
|
199
|
+
X-Culqi-Version:
|
200
|
+
- 2.0.0
|
201
|
+
body:
|
202
|
+
encoding: ASCII-8BIT
|
203
|
+
string: !binary |-
|
204
|
+
eyJkdXBsaWNhdGVkIjpmYWxzZSwib2JqZWN0IjoiY2hhcmdlIiwiaWQiOiJjaHJfdGVzdF9Yd0RUejRUUmtFT0lqR0dXIiwiY3JlYXRpb25fZGF0ZSI6MTUwNzgyMjkxMjAwMCwiYW1vdW50IjoxOTk5LCJhbW91bnRfcmVmdW5kZWQiOjAsImN1cnJlbnRfYW1vdW50IjoxOTk5LCJpbnN0YWxsbWVudHMiOjIsImluc3Rhb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, 12 Oct 2017 15:42:00 GMT
|
207
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,156 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.culqi.com/v2/customers/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Host:
|
17
|
+
- api.culqi.com
|
18
|
+
Authorization:
|
19
|
+
- Bearer sk_test_SpwICNI4YT0OSLHY
|
20
|
+
Content-Type:
|
21
|
+
- application/json
|
22
|
+
Cache-Control:
|
23
|
+
- no-cache
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Server:
|
30
|
+
- ":"
|
31
|
+
- nginx
|
32
|
+
Date:
|
33
|
+
- Thu, 12 Oct 2017 15:43:17 GMT
|
34
|
+
Content-Type:
|
35
|
+
- application/json;charset=UTF-8
|
36
|
+
Transfer-Encoding:
|
37
|
+
- chunked
|
38
|
+
Connection:
|
39
|
+
- keep-alive
|
40
|
+
Set-Cookie:
|
41
|
+
- JSESSIONID=5785BEB09121BA0CF1FDB39DD4F673DD; Path=/api/; HttpOnly
|
42
|
+
X-Culqi-Tracking-Id:
|
43
|
+
- '1924627'
|
44
|
+
X-Culqi-Environment:
|
45
|
+
- test
|
46
|
+
X-Culqi-Version:
|
47
|
+
- 2.0.0
|
48
|
+
body:
|
49
|
+
encoding: ASCII-8BIT
|
50
|
+
string: !binary |-
|
51
|
+
eyJkYXRhIjpbeyJvYmplY3QiOiJjdXN0b21lciIsImlkIjoiY3VzX3Rlc3RfdnpzWkNZbmxkV1plT2JvZCIsImNyZWF0aW9uX2RhdGUiOjE1M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iJjdXNfdGVzdF92enNaQ1lubGRXWmVPYm9kIiwiYWZ0ZXIiOiJjdXNfdGVzdF9obmZRRVhFTVhKblBaQTVVIn19fQ==
|
52
|
+
http_version:
|
53
|
+
recorded_at: Thu, 12 Oct 2017 15:43:17 GMT
|
54
|
+
- request:
|
55
|
+
method: post
|
56
|
+
uri: https://api.culqi.com/v2/cards/
|
57
|
+
body:
|
58
|
+
encoding: UTF-8
|
59
|
+
string: '{"customer_id":"cus_test_5KekHsuSguEzjzh8","token_id":"tkn_test_og4i4Sr04bMkI013"}'
|
60
|
+
headers:
|
61
|
+
Accept-Encoding:
|
62
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
63
|
+
Accept:
|
64
|
+
- "*/*"
|
65
|
+
User-Agent:
|
66
|
+
- Ruby
|
67
|
+
Host:
|
68
|
+
- api.culqi.com
|
69
|
+
Authorization:
|
70
|
+
- Bearer sk_test_SpwICNI4YT0OSLHY
|
71
|
+
Content-Type:
|
72
|
+
- application/json
|
73
|
+
Cache-Control:
|
74
|
+
- no-cache
|
75
|
+
response:
|
76
|
+
status:
|
77
|
+
code: 201
|
78
|
+
message: Created
|
79
|
+
headers:
|
80
|
+
Server:
|
81
|
+
- ":"
|
82
|
+
- nginx
|
83
|
+
Date:
|
84
|
+
- Thu, 12 Oct 2017 15:43:21 GMT
|
85
|
+
Content-Type:
|
86
|
+
- application/json;charset=UTF-8
|
87
|
+
Transfer-Encoding:
|
88
|
+
- chunked
|
89
|
+
Connection:
|
90
|
+
- keep-alive
|
91
|
+
Set-Cookie:
|
92
|
+
- JSESSIONID=96ED909054565E6861EF385D4E826A0C; Path=/api/; HttpOnly
|
93
|
+
X-Culqi-Tracking-Id:
|
94
|
+
- '1924628'
|
95
|
+
X-Culqi-Environment:
|
96
|
+
- test
|
97
|
+
X-Culqi-Version:
|
98
|
+
- 2.0.0
|
99
|
+
body:
|
100
|
+
encoding: ASCII-8BIT
|
101
|
+
string: !binary |-
|
102
|
+
eyJvYm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0YSI6e319
|
103
|
+
http_version:
|
104
|
+
recorded_at: Thu, 12 Oct 2017 15:43:21 GMT
|
105
|
+
- request:
|
106
|
+
method: post
|
107
|
+
uri: https://api.culqi.com/v2/charges/
|
108
|
+
body:
|
109
|
+
encoding: UTF-8
|
110
|
+
string: '{"amount":1999,"capture":false,"currency_code":"PEN","description":null,"email":"han@example.com","installments":2,"source_id":"crd_test_LYfPZkNY0oC9ZVz5"}'
|
111
|
+
headers:
|
112
|
+
Accept-Encoding:
|
113
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
114
|
+
Accept:
|
115
|
+
- "*/*"
|
116
|
+
User-Agent:
|
117
|
+
- Ruby
|
118
|
+
Host:
|
119
|
+
- api.culqi.com
|
120
|
+
Authorization:
|
121
|
+
- Bearer sk_test_SpwICNI4YT0OSLHY
|
122
|
+
Content-Type:
|
123
|
+
- application/json
|
124
|
+
Cache-Control:
|
125
|
+
- no-cache
|
126
|
+
response:
|
127
|
+
status:
|
128
|
+
code: 201
|
129
|
+
message: Created
|
130
|
+
headers:
|
131
|
+
Server:
|
132
|
+
- ":"
|
133
|
+
- nginx
|
134
|
+
Date:
|
135
|
+
- Thu, 12 Oct 2017 15:43:26 GMT
|
136
|
+
Content-Type:
|
137
|
+
- application/json;charset=UTF-8
|
138
|
+
Transfer-Encoding:
|
139
|
+
- chunked
|
140
|
+
Connection:
|
141
|
+
- keep-alive
|
142
|
+
Set-Cookie:
|
143
|
+
- JSESSIONID=C67C86FD1769211CA71D5134A0981B77; Path=/api/; HttpOnly
|
144
|
+
X-Culqi-Tracking-Id:
|
145
|
+
- '1924631'
|
146
|
+
X-Culqi-Environment:
|
147
|
+
- test
|
148
|
+
X-Culqi-Version:
|
149
|
+
- 2.0.0
|
150
|
+
body:
|
151
|
+
encoding: ASCII-8BIT
|
152
|
+
string: !binary |-
|
153
|
+
eyJkdXBsaWNhdGVkIjpmYWxzZSwib2JqZWN0IjoiY2hhcmdlIiwiaWQiOiJjaHJfdGV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iOjE0LCJ0cmFuc2Zlcl9hbW91bnQiOjE5MTAsInBhaWQiOmZhbHNlLCJzdGF0ZW1lbnRfZGVzY3JpcHRvciI6IkNVTFFJKiIsInRyYW5zZmVyX2lkIjpudWxsfQ==
|
154
|
+
http_version:
|
155
|
+
recorded_at: Thu, 12 Oct 2017 15:43:26 GMT
|
156
|
+
recorded_with: VCR 3.0.3
|
data/spec/cassettes/Culqi_checkout/with_unlogged_user/with_process_checkout/voids_a_payment.yml
ADDED
@@ -0,0 +1,207 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.culqi.com/v2/customers/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Host:
|
17
|
+
- api.culqi.com
|
18
|
+
Authorization:
|
19
|
+
- Bearer sk_test_SpwICNI4YT0OSLHY
|
20
|
+
Content-Type:
|
21
|
+
- application/json
|
22
|
+
Cache-Control:
|
23
|
+
- no-cache
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Server:
|
30
|
+
- ":"
|
31
|
+
- nginx
|
32
|
+
Date:
|
33
|
+
- Thu, 12 Oct 2017 15:42:31 GMT
|
34
|
+
Content-Type:
|
35
|
+
- application/json;charset=UTF-8
|
36
|
+
Transfer-Encoding:
|
37
|
+
- chunked
|
38
|
+
Connection:
|
39
|
+
- keep-alive
|
40
|
+
Set-Cookie:
|
41
|
+
- JSESSIONID=95605675054952CDDF3849DBCAAEF45C; Path=/api/; HttpOnly
|
42
|
+
X-Culqi-Tracking-Id:
|
43
|
+
- '1924619'
|
44
|
+
X-Culqi-Environment:
|
45
|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jdXN0b21lcnM/bGltaXQ9NTAmYmVmb3JlPWN1c190ZXN0X3Z6c1pDWW5sZFdaZU9ib2QiLCJuZXh0IjoiaHR0cHM6Ly9hcGkuY3VscWkuY29tL3YyL2N1c3RvbWVycz9saW1pdD01MCZhZnRlcj1jdXNfdGVzdF9obmZRRVhFTVhKblBaQTVVIiwiY3Vyc29ycyI6eyJiZWZvcmUiOiJjdXNfdGVzdF92enNaQ1lubGRXWmVPYm9kIiwiYWZ0ZXIiOiJjdXNfdGVzdF9obmZRRVhFTVhKblBaQTVVIn19fQ==
|
52
|
+
http_version:
|
53
|
+
recorded_at: Thu, 12 Oct 2017 15:42:31 GMT
|
54
|
+
- request:
|
55
|
+
method: post
|
56
|
+
uri: https://api.culqi.com/v2/cards/
|
57
|
+
body:
|
58
|
+
encoding: UTF-8
|
59
|
+
string: '{"customer_id":"cus_test_5KekHsuSguEzjzh8","token_id":"tkn_test_RpAaIEa3nF4vL2ZJ"}'
|
60
|
+
headers:
|
61
|
+
Accept-Encoding:
|
62
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
63
|
+
Accept:
|
64
|
+
- "*/*"
|
65
|
+
User-Agent:
|
66
|
+
- Ruby
|
67
|
+
Host:
|
68
|
+
- api.culqi.com
|
69
|
+
Authorization:
|
70
|
+
- Bearer sk_test_SpwICNI4YT0OSLHY
|
71
|
+
Content-Type:
|
72
|
+
- application/json
|
73
|
+
Cache-Control:
|
74
|
+
- no-cache
|
75
|
+
response:
|
76
|
+
status:
|
77
|
+
code: 201
|
78
|
+
message: Created
|
79
|
+
headers:
|
80
|
+
Server:
|
81
|
+
- ":"
|
82
|
+
- nginx
|
83
|
+
Date:
|
84
|
+
- Thu, 12 Oct 2017 15:42:35 GMT
|
85
|
+
Content-Type:
|
86
|
+
- application/json;charset=UTF-8
|
87
|
+
Transfer-Encoding:
|
88
|
+
- chunked
|
89
|
+
Connection:
|
90
|
+
- keep-alive
|
91
|
+
Set-Cookie:
|
92
|
+
- JSESSIONID=55BC2B4BC20E2AC5F6C3A0E1F2CD1AF2; Path=/api/; HttpOnly
|
93
|
+
X-Culqi-Tracking-Id:
|
94
|
+
- '1924621'
|
95
|
+
X-Culqi-Environment:
|
96
|
+
- test
|
97
|
+
X-Culqi-Version:
|
98
|
+
- 2.0.0
|
99
|
+
body:
|
100
|
+
encoding: ASCII-8BIT
|
101
|
+
string: !binary |-
|
102
|
+
eyJvYmplY3QiOiJjYXJkIiwiaWQiOiJjcmRfdGVzdF9MWWZQWmtOWTBvQzlaVno1IiwiYWN0aXZlIjp0cnVlLCJjcmVhdGlvbl9kYXRlIjoxNTA3Nzg5MzMzMDAwLCJjdXN0b21lcl9pZCI6ImN1c190ZXN0XzVLZWtIc3VTZ3VFemp6aDgiLCJzb3VyY2UiOnsib2JqZWN0IjoidG9rZW4iLCJpZCI6InRrbl90ZXN0X1JwQWFJRWEzbkY0dkwyWkoiLCJ0eXBlIjoiY2FyZCIsImNyZWF0aW9uX2RhdGUiOjE1MDc4MjI5NDUwMDAsImVtYWlsIjoiaGFuQGV4YW1wbGUuY29tIiwiY2FyZF9udW1iZXIiOiI0MTExMTEqKioqKioxMTExIiwibGFzdF9mb3VyIjoiMTExMSIsImFjdGl2ZSI6dHJ1ZSwiaWluIjp7Im9iamVjdCI6ImlpbiIsImJpbiI6IjQxMTExMSIsImNhcmRfYnJhbmQiOiJWaXNhIiwiY2FyZF90eXBlIjoiY3JlZGl0byIsImNhcmRfY2F0ZWdvcnkiOiJDbMOhc2ljYSIsImlzc3VlciI6eyJuYW1lIjoiSlBNT1JHQU4gQ0hBU0UgQkFOSywgTi5BLiIsImNvdW50cnkiOiJVTklURUQgU1RBVEVTIiwiY291bnRyeV9jb2RlIjoiVVMiLCJ3ZWJzaXRlIjpudWxsLCJwaG9uZV9udW1iZXIiOm51bGx9LCJpbnN0YWxsbWVudHNfYWxsb3dlZCI6WzIsNCw2LDgsMTAsMTJdfSwiY2xpZW50Ijp7ImlwIjoiMTc5LjcuMTUzLjIyNCIsImlwX2NvdW50cnkiOiJQZXLDuiIsImlwX2NvdW50cnlfY29kZSI6IlBFIiwiYnJvd3NlciI6bnVsbCwiZGV2aWNlX2ZpbmdlcnByaW50IjoiMTM0NzQwOTkzNSIsImRldmljZV90eXBlIjoiRXNjcml0b3JpbyJ9LCJtZXRhZGF0YSI6eyJjbGllbnRfaXAiOiIxNzkuNy4xNTMuMjI0In19LCJtZXRhZGF0YSI6e319
|
103
|
+
http_version:
|
104
|
+
recorded_at: Thu, 12 Oct 2017 15:42:36 GMT
|
105
|
+
- request:
|
106
|
+
method: post
|
107
|
+
uri: https://api.culqi.com/v2/charges/
|
108
|
+
body:
|
109
|
+
encoding: UTF-8
|
110
|
+
string: '{"amount":1999,"capture":false,"currency_code":"PEN","description":null,"email":"han@example.com","installments":2,"source_id":"crd_test_LYfPZkNY0oC9ZVz5"}'
|
111
|
+
headers:
|
112
|
+
Accept-Encoding:
|
113
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
114
|
+
Accept:
|
115
|
+
- "*/*"
|
116
|
+
User-Agent:
|
117
|
+
- Ruby
|
118
|
+
Host:
|
119
|
+
- api.culqi.com
|
120
|
+
Authorization:
|
121
|
+
- Bearer sk_test_SpwICNI4YT0OSLHY
|
122
|
+
Content-Type:
|
123
|
+
- application/json
|
124
|
+
Cache-Control:
|
125
|
+
- no-cache
|
126
|
+
response:
|
127
|
+
status:
|
128
|
+
code: 201
|
129
|
+
message: Created
|
130
|
+
headers:
|
131
|
+
Server:
|
132
|
+
- ":"
|
133
|
+
- nginx
|
134
|
+
Date:
|
135
|
+
- Thu, 12 Oct 2017 15:42:41 GMT
|
136
|
+
Content-Type:
|
137
|
+
- application/json;charset=UTF-8
|
138
|
+
Transfer-Encoding:
|
139
|
+
- chunked
|
140
|
+
Connection:
|
141
|
+
- keep-alive
|
142
|
+
Set-Cookie:
|
143
|
+
- JSESSIONID=06F6D1371CF92FF288613AC30C4A91CA; Path=/api/; HttpOnly
|
144
|
+
X-Culqi-Tracking-Id:
|
145
|
+
- '1924624'
|
146
|
+
X-Culqi-Environment:
|
147
|
+
- test
|
148
|
+
X-Culqi-Version:
|
149
|
+
- 2.0.0
|
150
|
+
body:
|
151
|
+
encoding: ASCII-8BIT
|
152
|
+
string: !binary |-
|
153
|
+
eyJkdXBsaWNhdGVkIjpmYWxzZSwib2JqZWN0IjoiY2hhcmdlIiwiaWQiOiJjaHJfdGVzdF9GalVoS1NqZEVMeVpYTDRXIiwiY3JlYXRpb25fZGF0ZSI6MTUwNzgyMjk1OTAwMCwiYW1vdW50IjoxOTk5LCJhbW91bnRfcmVmdW5kZWQiOjAsImN1cnJlbnRfYW1vdW50IjoxOTk5LCJpbnN0YWxsbWVudHMiOjIsImluc3RhbGxtZW50c19hbW91bnQiOjk5OSwiY3VycmVuY3lfY29kZSI6IlBFTiIsImVtYWlsIjoiaGFuQGV4YW1wbGUuY29tIiwiZGVzY3JpcHRpb24iOm51bGwsInNvdXJjZSI6eyJvYmplY3QiOiJjYXJkIiwiaWQiOiJjcmRfdGVzdF9MWWZQWmtOWTBvQzlaVno1IiwiYWN0aXZlIjp0cnVlLCJjcmVhdGlvbl9kYXRlIjoxNTA3Nzg5MzMzMDAwLCJjdXN0b21lcl9pZCI6ImN1c190ZXN0XzVLZWtIc3VTZ3VFemp6aDgiLCJzb3VyY2UiOnsib2JqZWN0IjoidG9rZW4iLCJpZCI6InRrbl90ZXN0X1JwQWFJRWEzbkY0dkwyWkoiLCJ0eXBlIjoiY2FyZCIsImNyZWF0aW9uX2RhdGUiOjE1MDc4MjI5NDUwMDAsImVtYWlsIjoiaGFuQGV4YW1wbGUuY29tIiwiY2FyZF9udW1iZXIiOiI0MTExMTEqKioqKioxMTExIiwibGFzdF9mb3VyIjoiMTExMSIsImFjdGl2ZSI6dHJ1ZSwiaWluIjp7Im9iamVjdCI6ImlpbiIsImJpbiI6IjQxMTExMSIsImNhcmRfYnJhbmQiOiJWaXNhIiwiY2FyZF90eXBlIjoiY3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ZlcmVuY2VfY29kZSI6IkM0eDlqU2oweGsiLCJtZXRhZGF0YSI6e30sInRvdGFsX2ZlZSI6ODksImZlZV9kZXRhaWxzIjp7ImZpeGVkX2ZlZSI6e30sInZhcmlhYmxlX2ZlZSI6eyJjdXJyZW5jeV9jb2RlIjoiUEVOIiwiY29tbWlzaW9uIjowLjAzNzUsInRvdGFsIjo3NX19LCJ0b3RhbF9mZWVfdGF4ZXMiOjE0LCJ0cmFuc2Zlcl9hbW91bnQiOjE5MTAsInBhaWQiOmZhbHNlLCJzdGF0ZW1lbnRfZGVzY3JpcHRvciI6IkNVTFFJKiIsInRyYW5zZmVyX2lkIjpudWxsfQ==
|
154
|
+
http_version:
|
155
|
+
recorded_at: Thu, 12 Oct 2017 15:42:41 GMT
|
156
|
+
- request:
|
157
|
+
method: post
|
158
|
+
uri: https://api.culqi.com/v2/refunds/
|
159
|
+
body:
|
160
|
+
encoding: UTF-8
|
161
|
+
string: '{"amount":1999,"charge_id":"chr_test_FjUhKSjdELyZXL4W","reason":"solicitud_comprador"}'
|
162
|
+
headers:
|
163
|
+
Accept-Encoding:
|
164
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
165
|
+
Accept:
|
166
|
+
- "*/*"
|
167
|
+
User-Agent:
|
168
|
+
- Ruby
|
169
|
+
Host:
|
170
|
+
- api.culqi.com
|
171
|
+
Authorization:
|
172
|
+
- Bearer sk_test_SpwICNI4YT0OSLHY
|
173
|
+
Content-Type:
|
174
|
+
- application/json
|
175
|
+
Cache-Control:
|
176
|
+
- no-cache
|
177
|
+
response:
|
178
|
+
status:
|
179
|
+
code: 201
|
180
|
+
message: Created
|
181
|
+
headers:
|
182
|
+
Server:
|
183
|
+
- ":"
|
184
|
+
- nginx
|
185
|
+
Date:
|
186
|
+
- Thu, 12 Oct 2017 15:42:47 GMT
|
187
|
+
Content-Type:
|
188
|
+
- application/json;charset=UTF-8
|
189
|
+
Transfer-Encoding:
|
190
|
+
- chunked
|
191
|
+
Connection:
|
192
|
+
- keep-alive
|
193
|
+
Set-Cookie:
|
194
|
+
- JSESSIONID=0E3E5405E1930A609DD1BE5023C1AA6E; Path=/api/; HttpOnly
|
195
|
+
X-Culqi-Tracking-Id:
|
196
|
+
- '1924625'
|
197
|
+
X-Culqi-Environment:
|
198
|
+
- test
|
199
|
+
X-Culqi-Version:
|
200
|
+
- 2.0.0
|
201
|
+
body:
|
202
|
+
encoding: ASCII-8BIT
|
203
|
+
string: !binary |-
|
204
|
+
eyJvYmplY3QiOiJyZWZ1bmQiLCJpZCI6InJlZl90ZXN0X3hDaDYxYWQ1ejZaeGc4REsiLCJjaGFyZ2VfaWQiOiJjaHJfdGVzdF9GalVoS1NqZEVMeVpYTDRXIiwiY3JlYXRpb25fZGF0ZSI6MTUwNzgyMjk2NjAwMCwiYW1vdW50IjoxOTk5LCJyZWFzb24iOiJEZXZvbHVjacOzbiBzb2xpY2l0YWRhIHBvciBlbCBjb21lcmNpbyIsIm1ldGFkYXRhIjp7fX0=
|
205
|
+
http_version:
|
206
|
+
recorded_at: Thu, 12 Oct 2017 15:42:47 GMT
|
207
|
+
recorded_with: VCR 3.0.3
|