spree_paypal_adaptive_payment 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/.gitignore +22 -0
  2. data/Gemfile +34 -0
  3. data/MIT-LICENSE.txt +20 -0
  4. data/README.markdown +3 -0
  5. data/Rakefile +14 -0
  6. data/TAGS +64 -0
  7. data/Versionfile +1 -0
  8. data/app/models/billing_integration/paypal_adaptive_payment.rb +25 -0
  9. data/app/models/paypal_adaptive_payment_account.rb +99 -0
  10. data/app/views/admin/payments/source_forms/_paypal_adaptive_payments.html.erb +9 -0
  11. data/app/views/admin/payments/source_views/_paypal_adaptive_payments.html.erb +110 -0
  12. data/app/views/admin/paypal_adaptive_payments/refund.html.erb +15 -0
  13. data/app/views/checkout/_confirm.html.erb +11 -0
  14. data/app/views/checkout/_delivery.html.erb +25 -0
  15. data/app/views/checkout/_payment.html.erb +30 -0
  16. data/app/views/checkout/edit.html.erb +18 -0
  17. data/app/views/checkout/payment/_check.html.erb +0 -0
  18. data/app/views/checkout/payment/_gateway.html.erb +31 -0
  19. data/app/views/checkout/payment/_paypal_adaptive_payment.html.erb +3 -0
  20. data/app/views/checkout/payment/_paypaladaptivepayment.html.erb +3 -0
  21. data/app/views/checkout/registration.html.erb +20 -0
  22. data/app/views/shared/_paypal_adaptive_paymetns_checkout.html.erb +3 -0
  23. data/app/views/shared/paypal_adaptive_payments_confirm.html.erb +10 -0
  24. data/config/locales/en.yml +32 -0
  25. data/config/routes.rb +26 -0
  26. data/db/migrate/20100226133156_create_paypal_adaptive_payment_accounts.rb +15 -0
  27. data/doc/BillingIntegration/PaypalAdaptivePayment.html +263 -0
  28. data/doc/PaypalAdaptivePaymentAccount.html +683 -0
  29. data/doc/SpreePaypalAdaptivePayment/Engine.html +200 -0
  30. data/doc/SpreePaypalAdaptivePayment.html +106 -0
  31. data/doc/SpreePaypalAdaptivePaymentHooks.html +116 -0
  32. data/doc/_index.html +146 -0
  33. data/doc/class_list.html +47 -0
  34. data/doc/css/common.css +1 -0
  35. data/doc/css/full_list.css +53 -0
  36. data/doc/css/style.css +320 -0
  37. data/doc/file.README.html +69 -0
  38. data/doc/file_list.html +49 -0
  39. data/doc/frames.html +13 -0
  40. data/doc/index.html +69 -0
  41. data/doc/js/app.js +205 -0
  42. data/doc/js/full_list.js +150 -0
  43. data/doc/js/jquery.js +16 -0
  44. data/doc/method_list.html +134 -0
  45. data/doc/top-level-namespace.html +105 -0
  46. data/lib/spree_paypal_adaptive_payment.rb +24 -0
  47. data/lib/spree_paypal_adaptive_payment_hooks.rb +3 -0
  48. data/lib/tasks/spree_paypal_adaptive_payment.rake +26 -0
  49. data/public/images/paypal111.gif +0 -0
  50. data/spec/controllers/checkout_controller_spec.rb +278 -0
  51. data/spec/factories/address_factory.rb +13 -0
  52. data/spec/factories/order_factory.rb +11 -0
  53. data/spec/factories/state_factory.rb +5 -0
  54. data/spec/spec_helper.rb +40 -0
  55. data/spree_paypal_adaptive_payment.gemspec +17 -0
  56. metadata +111 -0
@@ -0,0 +1,15 @@
1
+ class CreatePaypalAccounts < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :paypal_accounts do |t|
4
+ t.string :email
5
+ t.string :payer_id
6
+ t.string :appid
7
+ t.string :payer_country
8
+ t.string :payer_status
9
+ end
10
+ end
11
+
12
+ def self.down
13
+ drop_table :paypal_accounts
14
+ end
15
+ end
@@ -0,0 +1,263 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: BillingIntegration::PaypalAdaptivePayment
8
+
9
+ &mdash; PayPal Adaptive Payments to Spree store
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '..';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="../_index.html">Index (P)</a> &raquo;
37
+ <span class='title'>BillingIntegration</span>
38
+ &raquo;
39
+ <span class="title">PaypalAdaptivePayment</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a id="class_list_link" href="#">Class List</a>
48
+
49
+ <a id="method_list_link" href="#">Method List</a>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Class: BillingIntegration::PaypalAdaptivePayment
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+ <dt class="r1">Inherits:</dt>
68
+ <dd class="r1">
69
+ <span class="inheritName">BillingIntegration</span>
70
+
71
+ <ul class="fullTree">
72
+ <li>Object</li>
73
+
74
+ <li class="next">BillingIntegration</li>
75
+
76
+ <li class="next">BillingIntegration::PaypalAdaptivePayment</li>
77
+
78
+ </ul>
79
+ <a href="#" class="inheritanceTree">show all</a>
80
+
81
+ </dd>
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+ <dt class="r2 last">Defined in:</dt>
92
+ <dd class="r2 last">app/models/billing_integration/paypal_adaptive_payment.rb</dd>
93
+
94
+ </dl>
95
+ <div class="clear"></div>
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+ <h2>
106
+ Instance Method Summary
107
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
108
+ </h2>
109
+
110
+ <ul class="summary">
111
+
112
+ <li class="public ">
113
+ <span class="summary_signature">
114
+
115
+ <a href="#payment_profiles_supported%3F-instance_method" title="#payment_profiles_supported? (instance method)">- (Boolean) <strong>payment_profiles_supported?</strong> </a>
116
+
117
+
118
+
119
+ </span>
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+ <span class="summary_desc"><div class='inline'><p>
129
+ Set this to true in order to display the confirm state in the checkout
130
+ process&#8230;
131
+ </p>
132
+ </div></span>
133
+
134
+ </li>
135
+
136
+
137
+ <li class="public ">
138
+ <span class="summary_signature">
139
+
140
+ <a href="#provider_class-instance_method" title="#provider_class (instance method)">- (Object) <strong>provider_class</strong> </a>
141
+
142
+
143
+
144
+ </span>
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+ <span class="summary_desc"><div class='inline'></div></span>
154
+
155
+ </li>
156
+
157
+
158
+ </ul>
159
+
160
+
161
+
162
+
163
+
164
+ <div id="instance_method_details" class="method_details_list">
165
+ <h2>Instance Method Details</h2>
166
+
167
+
168
+ <div class="method_details first">
169
+ <p class="signature first" id="payment_profiles_supported?-instance_method">
170
+
171
+ - (<tt>Boolean</tt>) <strong>payment_profiles_supported?</strong>
172
+
173
+
174
+
175
+ </p><div class="docstring">
176
+ <div class="discussion">
177
+ <p>
178
+ Set this to true in order to display the confirm state in the checkout
179
+ process&#8230;
180
+ </p>
181
+
182
+
183
+ </div>
184
+ </div>
185
+ <div class="tags">
186
+
187
+ <h3>Returns:</h3>
188
+ <ul class="return">
189
+
190
+ <li>
191
+
192
+
193
+ <span class='type'>(<tt>Boolean</tt>)</span>
194
+
195
+
196
+
197
+ </li>
198
+
199
+ </ul>
200
+
201
+ </div><table class="source_code">
202
+ <tr>
203
+ <td>
204
+ <pre class="lines">
205
+
206
+
207
+ 21
208
+ 22
209
+ 23</pre>
210
+ </td>
211
+ <td>
212
+ <pre class="code"><span class="info file"># File 'app/models/billing_integration/paypal_adaptive_payment.rb', line 21</span>
213
+
214
+ <span class='kw'>def</span> <span class='id payment_profiles_supported?'>payment_profiles_supported?</span>
215
+ <span class='kw'>false</span>
216
+ <span class='kw'>end</span></pre>
217
+ </td>
218
+ </tr>
219
+ </table>
220
+ </div>
221
+
222
+ <div class="method_details ">
223
+ <p class="signature " id="provider_class-instance_method">
224
+
225
+ - (<tt>Object</tt>) <strong>provider_class</strong>
226
+
227
+
228
+
229
+ </p><table class="source_code">
230
+ <tr>
231
+ <td>
232
+ <pre class="lines">
233
+
234
+
235
+ 10
236
+ 11
237
+ 12
238
+ 13</pre>
239
+ </td>
240
+ <td>
241
+ <pre class="code"><span class="info file"># File 'app/models/billing_integration/paypal_adaptive_payment.rb', line 10</span>
242
+
243
+ <span class='kw'>def</span> <span class='id provider_class'>provider_class</span>
244
+ <span class='comment'># This relies on https://github.com/jpablobr/active_paypal_adaptive_payment
245
+ </span> <span class='const'>ActiveMerchant</span><span class='op'>::</span><span class='const'>Billing</span><span class='op'>::</span><span class='const'>PaypalAdaptivePayment</span>
246
+ <span class='kw'>end</span></pre>
247
+ </td>
248
+ </tr>
249
+ </table>
250
+ </div>
251
+
252
+ </div>
253
+
254
+ </div>
255
+
256
+ <div id="footer">
257
+ Generated on Thu Aug 25 01:54:30 2011 by
258
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
259
+ 0.7.2 (ruby-1.9.2).
260
+ </div>
261
+
262
+ </body>
263
+ </html>