sermepa_web_tpv 0.1.0 → 0.1.1

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: cea5def5710b4a30eaf4e4132c73897b4cb717aa
4
- data.tar.gz: 0980e6c6776408beac945ba5e9b147869fef9fbf
3
+ metadata.gz: 622e53c3960c8bc16dc42117a39a42e468219b9d
4
+ data.tar.gz: e16987f374bbacedf3fd3c67293cb39a0e1b8155
5
5
  SHA512:
6
- metadata.gz: b8ce025ec8bfa7e0bc1720323f4a5b98da8584ea1fb6a505acc1eea731cbded29805680fa59ca8becc6a5bfe40a58f47cb4ff034e4b4906cab131ae65700e49b
7
- data.tar.gz: 29be593d02f6ef515ee2e396171e4359b2f9fdde8f66e9d496d034e73dc8a5c7a09cd48ecb94e9b653cd90e8316a54e64ccb8d285e7bc80e8664461818840723
6
+ metadata.gz: 69c1e1d346a063659226d151082b2a4064e17e6c427a2cb65e998140d5905205385b091f277f0c7bad3478218ea5bff62bb439a99e2a48a6e3ab99e332315334
7
+ data.tar.gz: 8259b81ec1be69155aad04818666259a6e88de88316a16cf655e8daebc12eb8581a79b959f0ba2d862ad095ad93416bfc96657afd914c3071167b6e7daf53734
@@ -4,7 +4,7 @@ module SermepaWebTpv
4
4
  def transaction_number
5
5
  generate_transaction_number! if transaction.new_record?
6
6
 
7
- transaction.send(transaction_number_attribute)
7
+ transaction.send(transaction_number_attribute).to_s
8
8
  end
9
9
 
10
10
  def transaction_amount
@@ -19,8 +19,7 @@ module SermepaWebTpv
19
19
  end
20
20
 
21
21
  def cipher
22
- @cipher ||= Mcrypt.new(:tripledes, :cbc, merchant_key,
23
- iv, :zeros)
22
+ Mcrypt.new(:tripledes, :cbc, merchant_key, iv, :zeros)
24
23
  end
25
24
 
26
25
  def digestor
@@ -1,3 +1,3 @@
1
1
  module SermepaWebTpv
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -8,7 +8,7 @@ module SermepaWebTpv
8
8
  @@transaction_model_amount_attribute = :amount
9
9
 
10
10
  mattr_accessor :bank_url
11
- @@bank_url = 'https://sis-t.sermepa.es:25443/sis/realizarPago'
11
+ @@bank_url = 'https://sis-t.redsys.es:25443/sis/realizarPago'
12
12
 
13
13
  mattr_accessor :terminal
14
14
  @@terminal = 1
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sermepa_web_tpv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricard Forniol Agustí
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-21 00:00:00.000000000 Z
11
+ date: 2015-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails