nimbleshop_stripe 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. data/app/controllers/nimbleshop_stripe/payments_controller.rb +9 -6
  2. data/app/controllers/nimbleshop_stripe/stripes_controller.rb +8 -22
  3. data/app/models/nimbleshop_stripe/stripe.rb +1 -1
  4. data/app/views/nimbleshop_stripe/payments/_new.html.erb +6 -2
  5. data/app/views/nimbleshop_stripe/stripes/_edit.html.erb +59 -24
  6. data/lib/nimbleshop_stripe/processor.rb +32 -64
  7. data/lib/tasks/nimbleshop_stripe_tasks.rake +2 -2
  8. data/test/unit/payment_method_test.rb +7 -7
  9. data/test/unit/processor_test.rb +35 -199
  10. data/test/vcr_cassettes/stripe/purchase-failure.yml +49 -0
  11. data/test/vcr_cassettes/stripe/purchase-success-for-refund.yml +113 -0
  12. data/test/vcr_cassettes/stripe/purchase-success.yml +112 -0
  13. data/test/vcr_cassettes/stripe/refund-success.yml +62 -0
  14. metadata +12 -28
  15. data/app/views/nimbleshop_stripe/stripes/_form.html.erb +0 -68
  16. data/lib/nimbleshop_stripe/util.rb +0 -32
  17. data/test/vcr_cassettes/authorize_net/authorize-failure.yml +0 -38
  18. data/test/vcr_cassettes/authorize_net/authorize-success.yml +0 -38
  19. data/test/vcr_cassettes/authorize_net/capture-failure.yml +0 -38
  20. data/test/vcr_cassettes/authorize_net/capture-success.yml +0 -38
  21. data/test/vcr_cassettes/authorize_net/purchase-failure.yml +0 -38
  22. data/test/vcr_cassettes/authorize_net/purchase-success.yml +0 -38
  23. data/test/vcr_cassettes/authorize_net/refund-failure.yml +0 -38
  24. data/test/vcr_cassettes/authorize_net/refund-success.yml +0 -38
  25. data/test/vcr_cassettes/authorize_net/void-authorize.yml +0 -38
  26. data/test/vcr_cassettes/authorize_net/void-failure.yml +0 -38
  27. data/test/vcr_cassettes/authorize_net/void-success.yml +0 -38
@@ -1,32 +0,0 @@
1
- raise 'do not use this class'
2
- module NimbleshopAuthorizedotnet
3
- module Util
4
- extend self
5
-
6
- def billing_address(order)
7
- { address1: order.real_billing_address.address1,
8
- city: order.real_billing_address.city,
9
- state: order.real_billing_address.state_name,
10
- country: order.real_billing_address.country_name,
11
- zip: order.real_billing_address.zipcode }
12
- end
13
-
14
- def shipping_address(order)
15
- { first_name: order.shipping_address.first_name,
16
- last_name: order.shipping_address.last_name,
17
- address1: order.shipping_address.address1,
18
- city: order.shipping_address.city,
19
- state: order.shipping_address.state_name,
20
- country: order.shipping_address.country_name,
21
- zip: order.shipping_address.zipcode }
22
- end
23
-
24
- # In this method am stands for activemerchant
25
- def am_options(order)
26
- billing_address = { billing_address: billing_address(order) }
27
- shipping_address = { shipping_address: shipping_address(order) }
28
- misc = { order_id: order.number, email: order.email }
29
- billing_address.merge(shipping_address).merge(misc)
30
- end
31
- end
32
- end
@@ -1,38 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://test.authorize.net/gateway/transact.dll
6
- body:
7
- encoding: US-ASCII
8
- string: x_version=3.1&x_login=26Daqx7Jtw7R&x_tran_key=66JWf57KKc82W9y6&x_relay_response=FALSE&x_type=AUTH_ONLY&x_delim_data=TRUE&x_delim_char=%2C&x_encap_char=%24&x_invoice_num=&x_description=&x_card_num=2&x_card_code=123&x_exp_date=0413&x_first_name=Meda&x_last_name=McClure&x_amount=100.48&x_test_request=FALSE
9
- headers:
10
- Content-Type:
11
- - application/x-www-form-urlencoded
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Connection:
22
- - close
23
- Date:
24
- - Sun, 22 Apr 2012 14:59:28 GMT
25
- Server:
26
- - Microsoft-IIS/6.0
27
- X-Powered-By:
28
- - ASP.NET
29
- Content-Type:
30
- - text/html
31
- Content-Length:
32
- - "307"
33
- body:
34
- encoding: US-ASCII
35
- string: $3$,$1$,$6$,$The credit card number is invalid.$,$$,$P$,$0$,$$,$$,$100.48$,$CC$,$auth_only$,$$,$Meda$,$McClure$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$82AF683896C71D9FCD99BE1D5AFFEEA8$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$XXXX2$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$
36
- http_version:
37
- recorded_at: Sun, 22 Apr 2012 14:59:28 GMT
38
- recorded_with: VCR 2.0.0
@@ -1,38 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://test.authorize.net/gateway/transact.dll
6
- body:
7
- encoding: US-ASCII
8
- string: x_version=3.1&x_login=26Daqx7Jtw7R&x_tran_key=66JWf57KKc82W9y6&x_relay_response=FALSE&x_type=AUTH_ONLY&x_delim_data=TRUE&x_delim_char=%2C&x_encap_char=%24&x_invoice_num=&x_description=&x_card_num=4007000000027&x_card_code=123&x_exp_date=0413&x_first_name=Clarabelle&x_last_name=Stiedemann&x_amount=100.48&x_test_request=FALSE
9
- headers:
10
- Content-Type:
11
- - application/x-www-form-urlencoded
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Connection:
22
- - close
23
- Date:
24
- - Sun, 22 Apr 2012 14:59:29 GMT
25
- Server:
26
- - Microsoft-IIS/6.0
27
- X-Powered-By:
28
- - ASP.NET
29
- Content-Type:
30
- - text/html
31
- Content-Length:
32
- - "341"
33
- body:
34
- encoding: US-ASCII
35
- string: $1$,$1$,$1$,$This transaction has been approved.$,$FI4KFO$,$Y$,$2171213293$,$$,$$,$100.48$,$CC$,$auth_only$,$$,$Clarabelle$,$Stiedemann$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$C5FD3839F84A696E8F8727D8B387A800$,$P$,$2$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$XXXX0027$,$Visa$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$
36
- http_version:
37
- recorded_at: Sun, 22 Apr 2012 14:59:30 GMT
38
- recorded_with: VCR 2.0.0
@@ -1,38 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://test.authorize.net/gateway/transact.dll
6
- body:
7
- encoding: US-ASCII
8
- string: x_version=3.1&x_login=26Daqx7Jtw7R&x_tran_key=66JWf57KKc82W9y6&x_relay_response=FALSE&x_type=PRIOR_AUTH_CAPTURE&x_delim_data=TRUE&x_delim_char=%2C&x_encap_char=%24&x_trans_id=%7B%7D&x_amount=&x_test_request=FALSE
9
- headers:
10
- Content-Type:
11
- - application/x-www-form-urlencoded
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Connection:
22
- - close
23
- Date:
24
- - Sun, 22 Apr 2012 15:19:50 GMT
25
- Server:
26
- - Microsoft-IIS/6.0
27
- X-Powered-By:
28
- - ASP.NET
29
- Content-Type:
30
- - text/html
31
- Content-Length:
32
- - "311"
33
- body:
34
- encoding: US-ASCII
35
- string: $3$,$2$,$33$,$A valid referenced transaction ID is required.$,$$,$P$,$0$,$$,$$,$0.00$,$CC$,$prior_auth_capture$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$E4D08D153C02147DACEF435A63672D69$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$
36
- http_version:
37
- recorded_at: Sun, 22 Apr 2012 15:19:50 GMT
38
- recorded_with: VCR 2.0.0
@@ -1,38 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://test.authorize.net/gateway/transact.dll
6
- body:
7
- encoding: US-ASCII
8
- string: x_version=3.1&x_login=26Daqx7Jtw7R&x_tran_key=66JWf57KKc82W9y6&x_relay_response=FALSE&x_type=PRIOR_AUTH_CAPTURE&x_delim_data=TRUE&x_delim_char=%2C&x_encap_char=%24&x_trans_id=2171213293&x_amount=100.48&x_test_request=FALSE
9
- headers:
10
- Content-Type:
11
- - application/x-www-form-urlencoded
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Connection:
22
- - close
23
- Date:
24
- - Sun, 22 Apr 2012 14:59:32 GMT
25
- Server:
26
- - Microsoft-IIS/6.0
27
- X-Powered-By:
28
- - ASP.NET
29
- Content-Type:
30
- - text/html
31
- Content-Length:
32
- - "315"
33
- body:
34
- encoding: US-ASCII
35
- string: $1$,$1$,$311$,$This transaction has already been captured.$,$$,$P$,$0$,$$,$$,$100.48$,$CC$,$prior_auth_capture$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$82AF683896C71D9FCD99BE1D5AFFEEA8$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$Visa$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$
36
- http_version:
37
- recorded_at: Sun, 22 Apr 2012 14:59:33 GMT
38
- recorded_with: VCR 2.0.0
@@ -1,38 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://test.authorize.net/gateway/transact.dll
6
- body:
7
- encoding: US-ASCII
8
- string: x_version=3.1&x_login=26Daqx7Jtw7R&x_tran_key=66JWf57KKc82W9y6&x_relay_response=FALSE&x_type=AUTH_CAPTURE&x_delim_data=TRUE&x_delim_char=%2C&x_encap_char=%24&x_invoice_num=&x_description=&x_card_num=2&x_card_code=123&x_exp_date=0413&x_first_name=Nova&x_last_name=Weimann&x_amount=100.48&x_test_request=FALSE
9
- headers:
10
- Content-Type:
11
- - application/x-www-form-urlencoded
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Connection:
22
- - close
23
- Date:
24
- - Sun, 22 Apr 2012 14:59:34 GMT
25
- Server:
26
- - Microsoft-IIS/6.0
27
- X-Powered-By:
28
- - ASP.NET
29
- Content-Type:
30
- - text/html
31
- Content-Length:
32
- - "310"
33
- body:
34
- encoding: US-ASCII
35
- string: $3$,$1$,$6$,$The credit card number is invalid.$,$$,$P$,$0$,$$,$$,$100.48$,$CC$,$auth_capture$,$$,$Nova$,$Weimann$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$82AF683896C71D9FCD99BE1D5AFFEEA8$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$XXXX2$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$
36
- http_version:
37
- recorded_at: Sun, 22 Apr 2012 14:59:34 GMT
38
- recorded_with: VCR 2.0.0
@@ -1,38 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://test.authorize.net/gateway/transact.dll
6
- body:
7
- encoding: US-ASCII
8
- string: x_version=3.1&x_login=26Daqx7Jtw7R&x_tran_key=66JWf57KKc82W9y6&x_relay_response=FALSE&x_type=AUTH_CAPTURE&x_delim_data=TRUE&x_delim_char=%2C&x_encap_char=%24&x_invoice_num=&x_description=&x_card_num=4007000000027&x_card_code=123&x_exp_date=0413&x_first_name=Elias&x_last_name=Goldner&x_amount=100.48&x_test_request=FALSE
9
- headers:
10
- Content-Type:
11
- - application/x-www-form-urlencoded
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Connection:
22
- - close
23
- Date:
24
- - Sun, 22 Apr 2012 14:59:35 GMT
25
- Server:
26
- - Microsoft-IIS/6.0
27
- X-Powered-By:
28
- - ASP.NET
29
- Content-Type:
30
- - text/html
31
- Content-Length:
32
- - "336"
33
- body:
34
- encoding: US-ASCII
35
- string: $1$,$1$,$1$,$This transaction has been approved.$,$8XZB16$,$Y$,$2171213294$,$$,$$,$100.48$,$CC$,$auth_capture$,$$,$Elias$,$Goldner$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$B49F0B0B6E4EDB37B26F2618E8E3780A$,$P$,$2$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$XXXX0027$,$Visa$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$
36
- http_version:
37
- recorded_at: Sun, 22 Apr 2012 14:59:36 GMT
38
- recorded_with: VCR 2.0.0
@@ -1,38 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://test.authorize.net/gateway/transact.dll
6
- body:
7
- encoding: US-ASCII
8
- string: x_version=3.1&x_login=26Daqx7Jtw7R&x_tran_key=66JWf57KKc82W9y6&x_relay_response=FALSE&x_type=CREDIT&x_delim_data=TRUE&x_delim_char=%2C&x_encap_char=%24&x_trans_id=2171213294&x_card_num=1234&x_invoice_num=&x_description=&x_amount=100.48&x_test_request=FALSE
9
- headers:
10
- Content-Type:
11
- - application/x-www-form-urlencoded
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Connection:
22
- - close
23
- Date:
24
- - Wed, 02 May 2012 19:52:39 GMT
25
- Server:
26
- - Microsoft-IIS/6.0
27
- X-Powered-By:
28
- - ASP.NET
29
- Content-Type:
30
- - text/html
31
- Content-Length:
32
- - "342"
33
- body:
34
- encoding: US-ASCII
35
- string: $3$,$2$,$54$,$The referenced transaction does not meet the criteria for issuing a credit.$,$$,$P$,$0$,$$,$$,$100.48$,$CC$,$credit$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$82AF683896C71D9FCD99BE1D5AFFEEA8$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$XXXX1234$,$Visa$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$
36
- http_version:
37
- recorded_at: Wed, 02 May 2012 19:52:39 GMT
38
- recorded_with: VCR 2.0.0
@@ -1,38 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://test.authorize.net/gateway/transact.dll
6
- body:
7
- encoding: US-ASCII
8
- string: x_version=3.1&x_login=26Daqx7Jtw7R&x_tran_key=66JWf57KKc82W9y6&x_relay_response=FALSE&x_type=CREDIT&x_delim_data=TRUE&x_delim_char=%2C&x_encap_char=%24&x_trans_id=2171213294&x_card_num=XXXX-XXXX-XXXX-0027&x_invoice_num=&x_description=&x_amount=100.48&x_test_request=FALSE
9
- headers:
10
- Content-Type:
11
- - application/x-www-form-urlencoded
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Connection:
22
- - close
23
- Date:
24
- - Wed, 02 May 2012 19:50:48 GMT
25
- Server:
26
- - Microsoft-IIS/6.0
27
- X-Powered-By:
28
- - ASP.NET
29
- Content-Type:
30
- - text/html
31
- Content-Length:
32
- - "310"
33
- body:
34
- encoding: US-ASCII
35
- string: $1$,$1$,$1$,$This transaction has been approved.$,$$,$P$,$2171555499$,$$,$$,$100.48$,$CC$,$credit$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$DFF17287B2348D649D6F98C83DDA88CC$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$XXXX0027$,$Visa$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$
36
- http_version:
37
- recorded_at: Wed, 02 May 2012 19:50:48 GMT
38
- recorded_with: VCR 2.0.0
@@ -1,38 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://test.authorize.net/gateway/transact.dll
6
- body:
7
- encoding: US-ASCII
8
- string: x_version=3.1&x_login=26Daqx7Jtw7R&x_tran_key=66JWf57KKc82W9y6&x_relay_response=FALSE&x_type=AUTH_ONLY&x_delim_data=TRUE&x_delim_char=%2C&x_encap_char=%24&x_invoice_num=&x_description=&x_card_num=4007000000027&x_card_code=123&x_exp_date=0413&x_first_name=Kamille&x_last_name=Quitzon&x_amount=100.48&x_test_request=FALSE
9
- headers:
10
- Content-Type:
11
- - application/x-www-form-urlencoded
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Connection:
22
- - close
23
- Date:
24
- - Sun, 22 Apr 2012 14:59:38 GMT
25
- Server:
26
- - Microsoft-IIS/6.0
27
- X-Powered-By:
28
- - ASP.NET
29
- Content-Type:
30
- - text/html
31
- Content-Length:
32
- - "335"
33
- body:
34
- encoding: US-ASCII
35
- string: $1$,$1$,$1$,$This transaction has been approved.$,$G2TLJZ$,$Y$,$2171213295$,$$,$$,$100.48$,$CC$,$auth_only$,$$,$Kamille$,$Quitzon$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$B745627AB73112658026B8D5DFA807B3$,$P$,$2$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$XXXX0027$,$Visa$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$
36
- http_version:
37
- recorded_at: Sun, 22 Apr 2012 14:59:39 GMT
38
- recorded_with: VCR 2.0.0
@@ -1,38 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://test.authorize.net/gateway/transact.dll
6
- body:
7
- encoding: US-ASCII
8
- string: x_version=3.1&x_login=26Daqx7Jtw7R&x_tran_key=66JWf57KKc82W9y6&x_relay_response=FALSE&x_type=VOID&x_delim_data=TRUE&x_delim_char=%2C&x_encap_char=%24&x_trans_id=&x_test_request=FALSE
9
- headers:
10
- Content-Type:
11
- - application/x-www-form-urlencoded
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Connection:
22
- - close
23
- Date:
24
- - Sun, 22 Apr 2012 15:24:10 GMT
25
- Server:
26
- - Microsoft-IIS/6.0
27
- X-Powered-By:
28
- - ASP.NET
29
- Content-Type:
30
- - text/html
31
- Content-Length:
32
- - "297"
33
- body:
34
- encoding: US-ASCII
35
- string: $3$,$2$,$33$,$A valid referenced transaction ID is required.$,$$,$P$,$0$,$$,$$,$0.00$,$CC$,$void$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$E4D08D153C02147DACEF435A63672D69$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$
36
- http_version:
37
- recorded_at: Sun, 22 Apr 2012 15:24:10 GMT
38
- recorded_with: VCR 2.0.0
@@ -1,38 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://test.authorize.net/gateway/transact.dll
6
- body:
7
- encoding: US-ASCII
8
- string: x_version=3.1&x_login=26Daqx7Jtw7R&x_tran_key=66JWf57KKc82W9y6&x_relay_response=FALSE&x_type=VOID&x_delim_data=TRUE&x_delim_char=%2C&x_encap_char=%24&x_trans_id=2171213295&x_test_request=FALSE
9
- headers:
10
- Content-Type:
11
- - application/x-www-form-urlencoded
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Connection:
22
- - close
23
- Date:
24
- - Sun, 22 Apr 2012 14:59:40 GMT
25
- Server:
26
- - Microsoft-IIS/6.0
27
- X-Powered-By:
28
- - ASP.NET
29
- Content-Type:
30
- - text/html
31
- Content-Length:
32
- - "312"
33
- body:
34
- encoding: US-ASCII
35
- string: $1$,$1$,$1$,$This transaction has been approved.$,$G2TLJZ$,$P$,$2171213295$,$$,$$,$0.00$,$CC$,$void$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$3EBBB35F0951D7C0F4B9891489865793$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$XXXX0027$,$Visa$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$,$$
36
- http_version:
37
- recorded_at: Sun, 22 Apr 2012 14:59:40 GMT
38
- recorded_with: VCR 2.0.0