rails-paypal-gem 0.7.3 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MzUwYTU4Mjg3YmIyOGE0OWNmYmU0OTZhMjc0ZTQwMGIzOWFmOGUwYg==
5
- data.tar.gz: !binary |-
6
- Y2RlNDUxN2UxZDA3ZmNjNDQ2NjkxNWVjNjE3Y2Y2NGIyMDVlODFjNw==
2
+ SHA1:
3
+ metadata.gz: d301f1bfa6ea9df4be70ff670a487469ea61676d
4
+ data.tar.gz: 6ea380e9426d07a5bb6b799b65329159f60c0f37
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MTAzMmE4MDEzMmRkMWMzMmRiMjViZTc3ODY3OWY3MWRkMzY2MDFlMDlmMWFj
10
- NGM2ZTQzNTExMGIzY2RhNGUxMThlMGRjYjBmMDVlYzVkNWM1MmI1M2ZhZWM2
11
- YzI2ZTVlMTRmNzQyMGZhNDA3Y2FjODk0ZTljMjk4Yzk3NDA4NzU=
12
- data.tar.gz: !binary |-
13
- NDQ5ZjkxZDUyNmVkZWVlYmViOWUzNmYzYTg2ZmU1MTM2NTcxZTNkNjhkZTQ1
14
- OTEwOTkxZmFjMDYzNjNhYjA1MGNjZjI4ODYwODU0YmYzMTc4ZTFkNGI3Y2Nh
15
- MTZhMzBjYmM1ZWRiOTQ4NTZlZjE4ZDUyNTEzMmVhMDBlY2E5ZDQ=
6
+ metadata.gz: 8495f46309b156358355378b6fe4626e190770e8d12aebbf5a4d8e5cd91fe372613f6d9c14774de7a0cfaa3494dbfd52b3753b5a0e13b05fcd0e286656326085
7
+ data.tar.gz: ba2427f2e4a53e16d2ff8dc4d00f3abb05a24acd5cf43e4b132da1b97fc2082caf9b739bf0edcfffecf03bbf00ae803f59326690e278b8374578c4eae7e4ae7d
data/README.md CHANGED
@@ -69,18 +69,18 @@ And of course you can get invoice id you specified in step one as well so you kn
69
69
  RailsPaypal::ExpressCheckout.get("YOURTOKEN")
70
70
 
71
71
 
72
- # TODO move thise to a config file
73
- URLS = {
74
- :sandbox => 'https://api-3t.sandbox.paypal.com/nvp',
75
- :production =>'https://api-3t.paypal.com/nvp',
76
- :checkout => 'https://www.sandbox.paypal.com/cgi-bin/webscr'
77
- }
78
- # wish httparty have something similar for default_params for body data
79
- PARAMS = {:USER => 'alicia_1345427347_biz_api1.gmail.com' ,
80
- :PWD => '1345427370',
81
- :SIGNATURE => 'AndYn9Gde1bznDG3gf7QHBhnXR5-A4Xl8tLjtE.ZHgc49RBCg5Yo4RhN',
82
- :VERSION => '92.0', # this is the latest version as of Sep 2nd, 2012
83
- :RETURNURL => 'http://return.com',
84
- :CANCELURL => 'http://cancel.com'
85
- }
72
+ # TODO move thise to a config file
73
+ URLS = {
74
+ :sandbox => 'https://api-3t.sandbox.paypal.com/nvp',
75
+ :production =>'https://api-3t.paypal.com/nvp',
76
+ :checkout => 'https://www.sandbox.paypal.com/cgi-bin/webscr'
77
+ }
78
+ # wish httparty have something similar for default_params for body data
79
+ PARAMS = {:USER => 'alicia_1345427347_biz_api1.gmail.com' ,
80
+ :PWD => '1345427370',
81
+ :SIGNATURE => 'AndYn9Gde1bznDG3gf7QHBhnXR5-A4Xl8tLjtE.ZHgc49RBCg5Yo4RhN',
82
+ :VERSION => '92.0', # this is the latest version as of Sep 2nd, 2012
83
+ :RETURNURL => 'http://return.com',
84
+ :CANCELURL => 'http://cancel.com'
85
+ }
86
86
 
@@ -1,3 +1,3 @@
1
1
  module RailsPaypalGem
2
- VERSION = '0.7.3'
2
+ VERSION = '0.7.5'
3
3
  end
@@ -38,7 +38,7 @@ class RailsPaypalGem::ExpressCheckout < RailsPaypalGem
38
38
 
39
39
  def redirect_url
40
40
  set if self.token.nil?
41
- if Rails.env == "development"
41
+ if Rails.env == "development" || Rails.env == "staging"
42
42
  "https://www.sandbox.paypal.com/webscr?cmd=_express-checkout&token=" + self.token
43
43
  elsif Rails.env == "production"
44
44
  "https://www.paypal.com/webscr?cmd=_express-checkout&token=" + self.token
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-paypal-gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Jezek
@@ -14,14 +14,14 @@ dependencies:
14
14
  name: httparty
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  description: A simple paypal client for rails lovers and paypal haters! (forked from
@@ -32,11 +32,11 @@ extensions: []
32
32
  extra_rdoc_files:
33
33
  - README.md
34
34
  files:
35
+ - README.md
36
+ - lib/rails-paypal-gem.rb
35
37
  - lib/rails-paypal-gem/nvp-parser.rb
36
38
  - lib/rails-paypal-gem/version.rb
37
- - lib/rails-paypal-gem.rb
38
39
  - lib/services/express_checkout.rb
39
- - README.md
40
40
  homepage: https://github.com/mediatainment/rails-paypal-gem
41
41
  licenses:
42
42
  - MIT
@@ -47,19 +47,18 @@ require_paths:
47
47
  - lib
48
48
  required_ruby_version: !ruby/object:Gem::Requirement
49
49
  requirements:
50
- - - ! '>='
50
+ - - ">="
51
51
  - !ruby/object:Gem::Version
52
52
  version: '0'
53
53
  required_rubygems_version: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - ! '>='
55
+ - - ">="
56
56
  - !ruby/object:Gem::Version
57
57
  version: '0'
58
58
  requirements: []
59
59
  rubyforge_project:
60
- rubygems_version: 2.1.11
60
+ rubygems_version: 2.4.6
61
61
  signing_key:
62
62
  specification_version: 4
63
63
  summary: Paypal for rails
64
64
  test_files: []
65
- has_rdoc: