przelewy24_payment 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1aa23c51b2fc7ce0a5473ea3e0d9b03c9119f16e
4
+ data.tar.gz: 67ffb0fb988389227b9d7b256181506df26a5634
5
+ SHA512:
6
+ metadata.gz: cbd474207677c1be874d8ad24d4880835763371d4149227be8f354d2b603cd5319942336a9c6eebaa82d90341bff62736a9f54443a547f20ed2a7c2fa2fcecf9
7
+ data.tar.gz: c88d2e401e92c1269eb310c3fc570ea03ad4e5bcd7fb2301e521f0796a30e84b8bf97e66659f338f2c60175bf1319ac3922b6cc5d90aedd0a7f02dc3a5f87cdd
@@ -1,18 +1,18 @@
1
1
  = form_tag Przelewy24Payment.post_url, :method => "post" do
2
- = hidden_field_tag 'p24_session_id', @data[:session_id]
3
- = hidden_field_tag 'p24_id_sprzedawcy', @data.has_key?(:seller_id) ? @data[:seller_id] : Przelewy24Payment.seller_id
4
- = hidden_field_tag 'p24_kwota', Przelewy24Payment.p24_price(@data[:value])
5
- = hidden_field_tag 'p24_klient', @data[:client_name]
6
- = hidden_field_tag 'p24_adres', @data[:address]
7
- = hidden_field_tag 'p24_kod', @data[:zipcode]
8
- = hidden_field_tag 'p24_miasto', @data[:city]
9
- = hidden_field_tag 'p24_kraj', @data[:country]
10
- = hidden_field_tag 'p24_email', @data[:email]
11
- = hidden_field_tag 'p24_return_url_ok', @data.has_key?(:comeback_url) ? @data[:comeback_url] : Przelewy24Payment.get_comeback_url
12
- = hidden_field_tag 'p24_return_url_error', @data.has_key?(:error_url) ? @data[:error_url] : Przelewy24Payment.get_error_url
13
- = hidden_field_tag 'p24_opis', @data[:description]
14
- = hidden_field_tag 'p24_language', @data.has_key?(:language) ? @data[:language] : Przelewy24Payment.language
15
- = hidden_field_tag 'p24_crc', @data[:crc]
2
+ = hidden_field_tag 'p24_session_id', data[:session_id]
3
+ = hidden_field_tag 'p24_id_sprzedawcy', data.has_key?(:seller_id) ? data[:seller_id] : Przelewy24Payment.seller_id
4
+ = hidden_field_tag 'p24_kwota', Przelewy24Payment.p24_price(data[:value])
5
+ = hidden_field_tag 'p24_klient', data[:client_name]
6
+ = hidden_field_tag 'p24_adres', data[:address]
7
+ = hidden_field_tag 'p24_kod', data[:zipcode]
8
+ = hidden_field_tag 'p24_miasto', data[:city]
9
+ = hidden_field_tag 'p24_kraj', data[:country]
10
+ = hidden_field_tag 'p24_email', data[:email]
11
+ = hidden_field_tag 'p24_return_url_ok', data.has_key?(:comeback_url) ? data[:comeback_url] : Przelewy24Payment.get_comeback_url
12
+ = hidden_field_tag 'p24_return_url_error', data.has_key?(:error_url) ? data[:error_url] : Przelewy24Payment.get_error_url
13
+ = hidden_field_tag 'p24_opis', data[:description]
14
+ = hidden_field_tag 'p24_language', data.has_key?(:language) ? data[:language] : Przelewy24Payment.language
15
+ = hidden_field_tag 'p24_crc', data[:crc]
16
16
  = button_tag( t("activerecord.models.p24_payment.buy"))
17
17
 
18
18
 
@@ -1,3 +1,3 @@
1
1
  module Przelewy24Payment
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -34,18 +34,18 @@ module Przelewy24Payment
34
34
  end
35
35
 
36
36
  def self.post_url
37
- if @@mode == :development
38
- 'https://sandbox.przelewy24.pl/index.php'
39
- elsif @@mode == :production
37
+ if @@mode == :production
40
38
  'https://secure.przelewy24.pl/index.php'
39
+ else
40
+ 'https://sandbox.przelewy24.pl/index.php'
41
41
  end
42
42
  end
43
43
 
44
44
  def self.transaction_url
45
- if @@mode == :development
45
+ if @@mode == :production
46
+ 'https://secure.przelewy24.pl/transakcja.php'
47
+ else
46
48
  'https://sandbox.przelewy24.pl/transakcja.php'
47
- elsif @mode == :production
48
- 'https://secure.przelewy24.pl/index.php'
49
49
  end
50
50
  end
51
51
 
metadata CHANGED
@@ -1,24 +1,23 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: przelewy24_payment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
5
- prerelease:
4
+ version: 0.1.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jakub Cieślar
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-10-29 00:00:00.000000000 Z
11
+ date: 2014-10-07 00:00:00.000000000 Z
13
12
  dependencies: []
14
- description: ! 'Integration with polish payment method: Przelewy24'
13
+ description: 'Integration with polish payment method: Przelewy24'
15
14
  email:
16
15
  - cieslar.jakub@gmail.com
17
16
  executables: []
18
17
  extensions: []
19
18
  extra_rdoc_files: []
20
19
  files:
21
- - .gitignore
20
+ - ".gitignore"
22
21
  - Gemfile
23
22
  - LICENSE.txt
24
23
  - README.md
@@ -35,26 +34,26 @@ files:
35
34
  - przelewy24_payment.gemspec
36
35
  homepage: https://github.com/jcieslar/przelewy24_payment
37
36
  licenses: []
37
+ metadata: {}
38
38
  post_install_message:
39
39
  rdoc_options: []
40
40
  require_paths:
41
41
  - lib
42
42
  required_ruby_version: !ruby/object:Gem::Requirement
43
- none: false
44
43
  requirements:
45
- - - ! '>='
44
+ - - ">="
46
45
  - !ruby/object:Gem::Version
47
46
  version: '0'
48
47
  required_rubygems_version: !ruby/object:Gem::Requirement
49
- none: false
50
48
  requirements:
51
- - - ! '>='
49
+ - - ">="
52
50
  - !ruby/object:Gem::Version
53
51
  version: '0'
54
52
  requirements: []
55
53
  rubyforge_project:
56
- rubygems_version: 1.8.24
54
+ rubygems_version: 2.2.2
57
55
  signing_key:
58
- specification_version: 3
59
- summary: ! 'Integration with polish payment method: Przelewy24'
56
+ specification_version: 4
57
+ summary: 'Integration with polish payment method: Przelewy24'
60
58
  test_files: []
59
+ has_rdoc: