nimbleshop_stripe 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. data/README.md +35 -0
  2. data/app/assets/images/nimbleshop_stripe/american_express.png +0 -0
  3. data/app/assets/images/nimbleshop_stripe/discover.png +0 -0
  4. data/app/assets/images/nimbleshop_stripe/mastercard.png +0 -0
  5. data/app/assets/images/nimbleshop_stripe/stripe.png +0 -0
  6. data/app/assets/images/nimbleshop_stripe/visa.png +0 -0
  7. data/app/controllers/nimbleshop_stripe/payments_controller.rb +38 -0
  8. data/app/controllers/nimbleshop_stripe/stripes_controller.rb +50 -0
  9. data/app/helpers/nimbleshop_stripe/exposed_helper.rb +26 -0
  10. data/app/models/nimbleshop_stripe/stripe.rb +31 -0
  11. data/app/views/nimbleshop_stripe/payments/_new.html.erb +118 -0
  12. data/app/views/nimbleshop_stripe/payments/_order_show_extra_info.html.erb +4 -0
  13. data/app/views/nimbleshop_stripe/payments/_payment_info_for_buyer.html.erb +6 -0
  14. data/app/views/nimbleshop_stripe/payments/_stripe_instructions.html.erb +47 -0
  15. data/app/views/nimbleshop_stripe/payments/_what_is_cvv.html.erb +25 -0
  16. data/app/views/nimbleshop_stripe/stripes/_edit.html.erb +31 -0
  17. data/app/views/nimbleshop_stripe/stripes/_form.html.erb +68 -0
  18. data/config/routes.rb +4 -0
  19. data/lib/nimbleshop_stripe/engine.rb +17 -0
  20. data/lib/nimbleshop_stripe/gateway.rb +9 -0
  21. data/lib/nimbleshop_stripe/processor.rb +134 -0
  22. data/lib/nimbleshop_stripe/util.rb +32 -0
  23. data/lib/nimbleshop_stripe.rb +8 -0
  24. data/lib/tasks/nimbleshop_stripe_tasks.rake +31 -0
  25. data/test/test_helper.rb +32 -0
  26. data/test/unit/payment_method_test.rb +21 -0
  27. data/test/unit/processor_test.rb +241 -0
  28. data/test/vcr_cassettes/authorize_net/authorize-failure.yml +38 -0
  29. data/test/vcr_cassettes/authorize_net/authorize-success.yml +38 -0
  30. data/test/vcr_cassettes/authorize_net/capture-failure.yml +38 -0
  31. data/test/vcr_cassettes/authorize_net/capture-success.yml +38 -0
  32. data/test/vcr_cassettes/authorize_net/purchase-failure.yml +38 -0
  33. data/test/vcr_cassettes/authorize_net/purchase-success.yml +38 -0
  34. data/test/vcr_cassettes/authorize_net/refund-failure.yml +38 -0
  35. data/test/vcr_cassettes/authorize_net/refund-success.yml +38 -0
  36. data/test/vcr_cassettes/authorize_net/void-authorize.yml +38 -0
  37. data/test/vcr_cassettes/authorize_net/void-failure.yml +38 -0
  38. data/test/vcr_cassettes/authorize_net/void-success.yml +38 -0
  39. metadata +120 -0
@@ -0,0 +1,38 @@
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
@@ -0,0 +1,38 @@
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
@@ -0,0 +1,38 @@
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
metadata ADDED
@@ -0,0 +1,120 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nimbleshop_stripe
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.9
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Neeraj Singh
9
+ - megpha
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2012-08-23 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: stripe
17
+ requirement: !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: '0'
31
+ description: Provides stripe support to nimbleShop
32
+ email:
33
+ - neeraj@BigBinary.com
34
+ executables: []
35
+ extensions: []
36
+ extra_rdoc_files: []
37
+ files:
38
+ - app/assets/images/nimbleshop_stripe/american_express.png
39
+ - app/assets/images/nimbleshop_stripe/discover.png
40
+ - app/assets/images/nimbleshop_stripe/mastercard.png
41
+ - app/assets/images/nimbleshop_stripe/stripe.png
42
+ - app/assets/images/nimbleshop_stripe/visa.png
43
+ - app/controllers/nimbleshop_stripe/payments_controller.rb
44
+ - app/controllers/nimbleshop_stripe/stripes_controller.rb
45
+ - app/helpers/nimbleshop_stripe/exposed_helper.rb
46
+ - app/models/nimbleshop_stripe/stripe.rb
47
+ - app/views/nimbleshop_stripe/payments/_new.html.erb
48
+ - app/views/nimbleshop_stripe/payments/_order_show_extra_info.html.erb
49
+ - app/views/nimbleshop_stripe/payments/_payment_info_for_buyer.html.erb
50
+ - app/views/nimbleshop_stripe/payments/_stripe_instructions.html.erb
51
+ - app/views/nimbleshop_stripe/payments/_what_is_cvv.html.erb
52
+ - app/views/nimbleshop_stripe/stripes/_edit.html.erb
53
+ - app/views/nimbleshop_stripe/stripes/_form.html.erb
54
+ - config/routes.rb
55
+ - lib/nimbleshop_stripe/engine.rb
56
+ - lib/nimbleshop_stripe/gateway.rb
57
+ - lib/nimbleshop_stripe/processor.rb
58
+ - lib/nimbleshop_stripe/util.rb
59
+ - lib/nimbleshop_stripe.rb
60
+ - lib/tasks/nimbleshop_stripe_tasks.rake
61
+ - README.md
62
+ - test/test_helper.rb
63
+ - test/unit/payment_method_test.rb
64
+ - test/unit/processor_test.rb
65
+ - test/vcr_cassettes/authorize_net/authorize-failure.yml
66
+ - test/vcr_cassettes/authorize_net/authorize-success.yml
67
+ - test/vcr_cassettes/authorize_net/capture-failure.yml
68
+ - test/vcr_cassettes/authorize_net/capture-success.yml
69
+ - test/vcr_cassettes/authorize_net/purchase-failure.yml
70
+ - test/vcr_cassettes/authorize_net/purchase-success.yml
71
+ - test/vcr_cassettes/authorize_net/refund-failure.yml
72
+ - test/vcr_cassettes/authorize_net/refund-success.yml
73
+ - test/vcr_cassettes/authorize_net/void-authorize.yml
74
+ - test/vcr_cassettes/authorize_net/void-failure.yml
75
+ - test/vcr_cassettes/authorize_net/void-success.yml
76
+ homepage: http://nimbleShop.org
77
+ licenses: []
78
+ post_install_message:
79
+ rdoc_options: []
80
+ require_paths:
81
+ - lib
82
+ required_ruby_version: !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ segments:
89
+ - 0
90
+ hash: 2252895948620260224
91
+ required_rubygems_version: !ruby/object:Gem::Requirement
92
+ none: false
93
+ requirements:
94
+ - - ! '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ segments:
98
+ - 0
99
+ hash: 2252895948620260224
100
+ requirements: []
101
+ rubyforge_project:
102
+ rubygems_version: 1.8.24
103
+ signing_key:
104
+ specification_version: 3
105
+ summary: Stripe extension for nimbleShop
106
+ test_files:
107
+ - test/test_helper.rb
108
+ - test/unit/payment_method_test.rb
109
+ - test/unit/processor_test.rb
110
+ - test/vcr_cassettes/authorize_net/authorize-failure.yml
111
+ - test/vcr_cassettes/authorize_net/authorize-success.yml
112
+ - test/vcr_cassettes/authorize_net/capture-failure.yml
113
+ - test/vcr_cassettes/authorize_net/capture-success.yml
114
+ - test/vcr_cassettes/authorize_net/purchase-failure.yml
115
+ - test/vcr_cassettes/authorize_net/purchase-success.yml
116
+ - test/vcr_cassettes/authorize_net/refund-failure.yml
117
+ - test/vcr_cassettes/authorize_net/refund-success.yml
118
+ - test/vcr_cassettes/authorize_net/void-authorize.yml
119
+ - test/vcr_cassettes/authorize_net/void-failure.yml
120
+ - test/vcr_cassettes/authorize_net/void-success.yml