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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1198ecab649f610f3903b593915c94f3cd5c47a2
4
- data.tar.gz: 99a78aaab4f621d7e63d0341afc9d5afdeb96d90
3
+ metadata.gz: bde987ab914429daa48c8f51c291b57f844559e1
4
+ data.tar.gz: c5073e464c08dad8cc7a1b8fa28da5d848cf059c
5
5
  SHA512:
6
- metadata.gz: 98cc327c7d07e2428a4facc288d257b1cd2a5d6892573aebcff7519a469a53483b57153b75ad7c7f96dcd4dbf50ca5922f0c990ee1c6fa6b5c724546b17658b2
7
- data.tar.gz: da44119d12a49981eed014162554a37495065a915def0859578f4e28cc9b4afa74fcd5edc5f060c4ccb3e5dba989b05052c917272d190cc12c4e028695b57e8f
6
+ metadata.gz: 46e929535b1c2124f29ba83205583a2c19d5386a898b3af032670f74b4ab5e2f4a57122d56121b813ef29d8b571937723825f55e2f51cb01f9574329a611e835
7
+ data.tar.gz: 06223f2d398baf3099d4d13b11f84ca07d93b2b5d2e8b18412c58a461a61ce1243fb80a5dda7e3ab930932eaa4d25186756cd37f99a75a1790aecd39d626c3df
data/Gemfile.lock CHANGED
@@ -8,7 +8,7 @@ GIT
8
8
  PATH
9
9
  remote: .
10
10
  specs:
11
- pagantis-rails (0.0.2)
11
+ pagantis-rails (0.0.3)
12
12
 
13
13
  GEM
14
14
  remote: https://rubygems.org/
@@ -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 # subscription-only
21
- # = f.text_field :user_id # subscription-only
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 = args.fetch(:plan_id)
41
- @user_id = args.fetch(: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
 
@@ -1,5 +1,5 @@
1
1
  module Pagantis
2
2
  module Rails
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
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.2
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-20 00:00:00.000000000 Z
11
+ date: 2015-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler