pagantis-rails 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/pagantis-rails/helper.rb +9 -5
- data/lib/pagantis-rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bde987ab914429daa48c8f51c291b57f844559e1
|
4
|
+
data.tar.gz: c5073e464c08dad8cc7a1b8fa28da5d848cf059c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46e929535b1c2124f29ba83205583a2c19d5386a898b3af032670f74b4ab5e2f4a57122d56121b813ef29d8b571937723825f55e2f51cb01f9574329a611e835
|
7
|
+
data.tar.gz: 06223f2d398baf3099d4d13b11f84ca07d93b2b5d2e8b18412c58a461a61ce1243fb80a5dda7e3ab930932eaa4d25186756cd37f99a75a1790aecd39d626c3df
|
data/Gemfile.lock
CHANGED
@@ -17,13 +17,15 @@ module Pagantis
|
|
17
17
|
# = f.text_field :description
|
18
18
|
# = f.text_field :ok_url
|
19
19
|
# = f.text_field :nok_url
|
20
|
-
# = f.text_field :plan_id
|
21
|
-
# = f.text_field :user_id
|
20
|
+
# = f.text_field :plan_id # subscription-only
|
21
|
+
# = f.text_field :user_id # subscription-only
|
22
|
+
# = f.text_field :user_name # subscription-only
|
23
|
+
# = f.text_field :user_email # subscription-only
|
22
24
|
# = f.submit 'Pay'
|
23
25
|
#
|
24
26
|
class Helper
|
25
27
|
attr_reader :operation, :order_id, :auth_method, :amount, :currency, :description,
|
26
|
-
:ok_url, :nok_url, :account_id, :signature, :plan_id, :user_id
|
28
|
+
:ok_url, :nok_url, :account_id, :signature, :plan_id, :user_id, :user_email, :user_name
|
27
29
|
|
28
30
|
def initialize(args = {})
|
29
31
|
@operation = args.fetch(:operation) { nil } # empty operation equals single charge
|
@@ -37,8 +39,10 @@ module Pagantis
|
|
37
39
|
@secret = args.fetch(:secret)
|
38
40
|
|
39
41
|
if subscription?
|
40
|
-
@plan_id
|
41
|
-
@user_id
|
42
|
+
@plan_id = args.fetch(:plan_id)
|
43
|
+
@user_id = args.fetch(:user_id)
|
44
|
+
@user_email = args.fetch(:user_email)
|
45
|
+
@user_name = args.fetch(:user_name)
|
42
46
|
end
|
43
47
|
end
|
44
48
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pagantis-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Gil
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|