easy_pay_u_latam 0.1.9 → 0.1.10

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: 5555a73e5dfc58806d1f0c6ab59adec1e5b6b90d
4
- data.tar.gz: 15028ef18790b32989707e76e734b581d1dcb52b
3
+ metadata.gz: 212f9b61a12093a4bb87b40967012ef3a1941376
4
+ data.tar.gz: f79566cf7543742a794af5cfea123d194406d60a
5
5
  SHA512:
6
- metadata.gz: c981f4cad6ef96f805440c55f29c751df1c30cefb5d6060ac4010cc1c201c9ced47abfc7776d57b9ae26d75e8992bcac411ebb1c82c563f38f84ac89041dbdbc
7
- data.tar.gz: 20a17ab7c7c148bc771455ab3c76634e85f0f21c0bc7eed42794127a8520c267b9a59907718b644cc33f245e6567494554f78f607163a7b995833dfea99d42be
6
+ metadata.gz: a53c2495648c49e29721280cb4b9cc527eeb21486bde4e276410056ad1836158c85fdf1c82d449911c04da4dcc9e3a56a3add3e35cebe15c85092c55c41f6448
7
+ data.tar.gz: d2a5553a4c5b4259aab00831d5218b665e033c2abfc0ec6d6798a54fa8f1017693e75a715ed5de0f3a8ae827775e32d4f4f9d879add012181c3010188613210b
data/README.md CHANGED
@@ -93,7 +93,7 @@ This is the method your should link with an anchor or button, it will automatica
93
93
  end_date: end_date
94
94
  )
95
95
 
96
- redirect_to "/easy_pay_u_latam/pay_u_payments/#{@payu_payment.id}/edit"
96
+ redirect_to "/easy_pay_u_latam/pay_u_payments/#{@payu_payment.id}/edit?user_id=#{current_user.id}"
97
97
  ```
98
98
 
99
99
  ## Contributing
@@ -21,10 +21,12 @@ module EasyPayULatam
21
21
  @test_merchant_id = "508029"
22
22
  @test_account_id = "512321"
23
23
  @test_payu_url = "https://sandbox.gateway.payulatam.com/ppp-web-gateway/"
24
+
25
+ @testing = false
24
26
  end
25
27
 
26
28
  def get_api_key
27
- if Rails.env != "production"
29
+ if @testing == false
28
30
  @test_api_key
29
31
  else
30
32
  @api_key
@@ -32,7 +34,7 @@ module EasyPayULatam
32
34
  end
33
35
 
34
36
  def get_merchant_id
35
- if Rails.env != "production"
37
+ if @testing == false
36
38
  @test_merchant_id
37
39
  else
38
40
  @merchant_id
@@ -40,7 +42,7 @@ module EasyPayULatam
40
42
  end
41
43
 
42
44
  def get_account_id
43
- if Rails.env != "production"
45
+ if @testing == false
44
46
  @test_account_id
45
47
  else
46
48
  @account_id
@@ -48,7 +50,7 @@ module EasyPayULatam
48
50
  end
49
51
 
50
52
  def get_payu_url
51
- if Rails.env != "production"
53
+ if @testing == false
52
54
  @test_payu_url
53
55
  else
54
56
  @payu_url
@@ -56,7 +58,7 @@ module EasyPayULatam
56
58
  end
57
59
 
58
60
  def get_root_url
59
- if Rails.env != "production"
61
+ if @testing == false
60
62
  @test_root_url
61
63
  else
62
64
  @root_url
@@ -1,3 +1,3 @@
1
1
  module EasyPayULatam
2
- VERSION = '0.1.9'
2
+ VERSION = '0.1.10'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_pay_u_latam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - DEVPENGUIN
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-10 00:00:00.000000000 Z
11
+ date: 2018-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails