paypal-recurring 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/.gitignore +3 -0
  2. data/.rspec +1 -0
  3. data/Gemfile +2 -0
  4. data/Gemfile.lock +45 -0
  5. data/README.rdoc +128 -0
  6. data/Rakefile +5 -0
  7. data/docs/PP_NVPAPI_DeveloperGuide.pdf +0 -0
  8. data/docs/PP_WPP_IntegrationGuide.pdf +0 -0
  9. data/lib/paypal-recurring.rb +1 -0
  10. data/lib/paypal/recurring.rb +106 -0
  11. data/lib/paypal/recurring/base.rb +149 -0
  12. data/lib/paypal/recurring/cacert.pem +3987 -0
  13. data/lib/paypal/recurring/request.rb +143 -0
  14. data/lib/paypal/recurring/response.rb +26 -0
  15. data/lib/paypal/recurring/response/base.rb +74 -0
  16. data/lib/paypal/recurring/response/checkout.rb +11 -0
  17. data/lib/paypal/recurring/response/details.rb +26 -0
  18. data/lib/paypal/recurring/response/manage_profile.rb +12 -0
  19. data/lib/paypal/recurring/response/payment.rb +22 -0
  20. data/lib/paypal/recurring/response/profile.rb +69 -0
  21. data/lib/paypal/recurring/version.rb +10 -0
  22. data/paypal-recurring.gemspec +25 -0
  23. data/spec/fixtures/checkout/failure.yml +26 -0
  24. data/spec/fixtures/checkout/success.yml +26 -0
  25. data/spec/fixtures/create_profile/failure.yml +26 -0
  26. data/spec/fixtures/create_profile/success.yml +26 -0
  27. data/spec/fixtures/details/cancelled.yml +26 -0
  28. data/spec/fixtures/details/failure.yml +26 -0
  29. data/spec/fixtures/details/success.yml +26 -0
  30. data/spec/fixtures/payment/failure.yml +26 -0
  31. data/spec/fixtures/payment/success.yml +26 -0
  32. data/spec/fixtures/profile/cancel/failure.yml +26 -0
  33. data/spec/fixtures/profile/cancel/success.yml +26 -0
  34. data/spec/fixtures/profile/failure.yml +26 -0
  35. data/spec/fixtures/profile/reactivate/failure.yml +26 -0
  36. data/spec/fixtures/profile/reactivate/success.yml +26 -0
  37. data/spec/fixtures/profile/success.yml +26 -0
  38. data/spec/fixtures/profile/suspend/failure.yml +26 -0
  39. data/spec/fixtures/profile/suspend/success.yml +26 -0
  40. data/spec/paypal/recurring_spec.rb +87 -0
  41. data/spec/paypal/request_spec.rb +102 -0
  42. data/spec/paypal/response/checkout_details_spec.rb +51 -0
  43. data/spec/paypal/response/checkout_spec.rb +32 -0
  44. data/spec/paypal/response/create_recurring_profile_spec.rb +39 -0
  45. data/spec/paypal/response/manage_profile_spec.rb +62 -0
  46. data/spec/paypal/response/profile_spec.rb +41 -0
  47. data/spec/paypal/response/request_payment_spec.rb +35 -0
  48. data/spec/spec_helper.rb +24 -0
  49. metadata +187 -0
@@ -0,0 +1,24 @@
1
+ require "bundler"
2
+ Bundler.setup(:default, :development)
3
+ Bundler.require
4
+
5
+ require "paypal-recurring"
6
+ require "vcr"
7
+
8
+ VCR.config do |config|
9
+ config.cassette_library_dir = File.dirname(__FILE__) + "/fixtures"
10
+ config.stub_with :fakeweb
11
+ end
12
+
13
+ RSpec.configure do |config|
14
+ config.extend VCR::RSpec::Macros
15
+
16
+ config.before do
17
+ PayPal::Recurring.configure do |config|
18
+ config.sandbox = true
19
+ config.username = "seller_1308793919_biz_api1.simplesideias.com.br"
20
+ config.password = "1308793931"
21
+ config.signature = "AFcWxV21C7fd0v3bYYYRCpSSRl31AzaB6TzXx5amObyEghjU13.0av2Y"
22
+ end
23
+ end
24
+ end
metadata ADDED
@@ -0,0 +1,187 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: paypal-recurring
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.1.0
6
+ platform: ruby
7
+ authors:
8
+ - Nando Vieira
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-06-27 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rspec
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: "2.6"
23
+ type: :development
24
+ prerelease: false
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: rake
28
+ requirement: &id002 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 0.8.7
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
+ name: vcr
39
+ requirement: &id003 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ version: "1.10"
45
+ type: :development
46
+ prerelease: false
47
+ version_requirements: *id003
48
+ - !ruby/object:Gem::Dependency
49
+ name: fakeweb
50
+ requirement: &id004 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ~>
54
+ - !ruby/object:Gem::Version
55
+ version: 1.3.0
56
+ type: :development
57
+ prerelease: false
58
+ version_requirements: *id004
59
+ - !ruby/object:Gem::Dependency
60
+ name: ruby-debug19
61
+ requirement: &id005 !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: "0"
67
+ type: :development
68
+ prerelease: false
69
+ version_requirements: *id005
70
+ description: PayPal Express Checkout API Client for recurring billing.
71
+ email:
72
+ - fnando.vieira@gmail.com
73
+ executables: []
74
+
75
+ extensions: []
76
+
77
+ extra_rdoc_files: []
78
+
79
+ files:
80
+ - .gitignore
81
+ - .rspec
82
+ - Gemfile
83
+ - Gemfile.lock
84
+ - README.rdoc
85
+ - Rakefile
86
+ - docs/PP_NVPAPI_DeveloperGuide.pdf
87
+ - docs/PP_WPP_IntegrationGuide.pdf
88
+ - lib/paypal-recurring.rb
89
+ - lib/paypal/recurring.rb
90
+ - lib/paypal/recurring/base.rb
91
+ - lib/paypal/recurring/cacert.pem
92
+ - lib/paypal/recurring/request.rb
93
+ - lib/paypal/recurring/response.rb
94
+ - lib/paypal/recurring/response/base.rb
95
+ - lib/paypal/recurring/response/checkout.rb
96
+ - lib/paypal/recurring/response/details.rb
97
+ - lib/paypal/recurring/response/manage_profile.rb
98
+ - lib/paypal/recurring/response/payment.rb
99
+ - lib/paypal/recurring/response/profile.rb
100
+ - lib/paypal/recurring/version.rb
101
+ - paypal-recurring.gemspec
102
+ - spec/fixtures/checkout/failure.yml
103
+ - spec/fixtures/checkout/success.yml
104
+ - spec/fixtures/create_profile/failure.yml
105
+ - spec/fixtures/create_profile/success.yml
106
+ - spec/fixtures/details/cancelled.yml
107
+ - spec/fixtures/details/failure.yml
108
+ - spec/fixtures/details/success.yml
109
+ - spec/fixtures/payment/failure.yml
110
+ - spec/fixtures/payment/success.yml
111
+ - spec/fixtures/profile/cancel/failure.yml
112
+ - spec/fixtures/profile/cancel/success.yml
113
+ - spec/fixtures/profile/failure.yml
114
+ - spec/fixtures/profile/reactivate/failure.yml
115
+ - spec/fixtures/profile/reactivate/success.yml
116
+ - spec/fixtures/profile/success.yml
117
+ - spec/fixtures/profile/suspend/failure.yml
118
+ - spec/fixtures/profile/suspend/success.yml
119
+ - spec/paypal/recurring_spec.rb
120
+ - spec/paypal/request_spec.rb
121
+ - spec/paypal/response/checkout_details_spec.rb
122
+ - spec/paypal/response/checkout_spec.rb
123
+ - spec/paypal/response/create_recurring_profile_spec.rb
124
+ - spec/paypal/response/manage_profile_spec.rb
125
+ - spec/paypal/response/profile_spec.rb
126
+ - spec/paypal/response/request_payment_spec.rb
127
+ - spec/spec_helper.rb
128
+ homepage: http://rubygems.org/gems/paypal-recurring
129
+ licenses: []
130
+
131
+ post_install_message:
132
+ rdoc_options: []
133
+
134
+ require_paths:
135
+ - lib
136
+ required_ruby_version: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ hash: -1993102493723648975
142
+ segments:
143
+ - 0
144
+ version: "0"
145
+ required_rubygems_version: !ruby/object:Gem::Requirement
146
+ none: false
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ hash: -1993102493723648975
151
+ segments:
152
+ - 0
153
+ version: "0"
154
+ requirements: []
155
+
156
+ rubyforge_project:
157
+ rubygems_version: 1.8.5
158
+ signing_key:
159
+ specification_version: 3
160
+ summary: PayPal Express Checkout API Client for recurring billing.
161
+ test_files:
162
+ - spec/fixtures/checkout/failure.yml
163
+ - spec/fixtures/checkout/success.yml
164
+ - spec/fixtures/create_profile/failure.yml
165
+ - spec/fixtures/create_profile/success.yml
166
+ - spec/fixtures/details/cancelled.yml
167
+ - spec/fixtures/details/failure.yml
168
+ - spec/fixtures/details/success.yml
169
+ - spec/fixtures/payment/failure.yml
170
+ - spec/fixtures/payment/success.yml
171
+ - spec/fixtures/profile/cancel/failure.yml
172
+ - spec/fixtures/profile/cancel/success.yml
173
+ - spec/fixtures/profile/failure.yml
174
+ - spec/fixtures/profile/reactivate/failure.yml
175
+ - spec/fixtures/profile/reactivate/success.yml
176
+ - spec/fixtures/profile/success.yml
177
+ - spec/fixtures/profile/suspend/failure.yml
178
+ - spec/fixtures/profile/suspend/success.yml
179
+ - spec/paypal/recurring_spec.rb
180
+ - spec/paypal/request_spec.rb
181
+ - spec/paypal/response/checkout_details_spec.rb
182
+ - spec/paypal/response/checkout_spec.rb
183
+ - spec/paypal/response/create_recurring_profile_spec.rb
184
+ - spec/paypal/response/manage_profile_spec.rb
185
+ - spec/paypal/response/profile_spec.rb
186
+ - spec/paypal/response/request_payment_spec.rb
187
+ - spec/spec_helper.rb