culqi 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fcb3fc2afe81d463e721f79b88652c78a75255ba
4
- data.tar.gz: a8d9290394afde57d942e31af77a7700eebc50f4
3
+ metadata.gz: 9bc36f56cb357c471b065971d0c42e321c74720a
4
+ data.tar.gz: baa4220c0a4d6e4bc5d5093e375fd9b2993d64d4
5
5
  SHA512:
6
- metadata.gz: 49188f7311fda6014fb437a406795ef0ff647783fd00818c3ee36fdf1174387bab2f26be5e3c39a5f71179102525cc70c01043849c5997c15ddcd767ff7324e7
7
- data.tar.gz: db884fbbb3e28e15f63a63531918a6006641ee1ed9f6c5f91a143cb780388cb34479ef448988c69c0db8efcf9913bf3aed9e7866bdb3b6bd6ed392cd5f1212e3
6
+ metadata.gz: 2c2a45182dadfee66ddb125afc543fb3e6f222a3a854b39a302a4377648f39e4570e32d985f4952e1734b154e3676ad7eca41270d748384c97f419074443bd79
7
+ data.tar.gz: 04c5e89f144ffc757e072dadf69e2b6a808e9fb6550b72a2f6e0b661f373dfc38c5c5016783fe2850f84ce7ebdb8e827059adc042eba0e37cfb43421a9474289
data/lib/culqi/sale.rb CHANGED
@@ -25,7 +25,6 @@ module Culqi
25
25
 
26
26
  def payload
27
27
  {
28
- codigo_comercio: ENV['CULQI_CODIGO_COMERCIO'],
29
28
  numero_pedido: numero_pedido,
30
29
  moneda: (moneda || DEFAULTS[:moneda]),
31
30
  monto: monto,
@@ -37,7 +36,8 @@ module Culqi
37
36
  num_tel: num_tel[0..14],
38
37
  id_usuario_comercio: id_usuario_comercio,
39
38
  nombres: nombres[0..49],
40
- apellidos: apellidos[0..49]
39
+ apellidos: apellidos[0..49],
40
+ codigo_comercio: (codigo_comercio || ENV['CULQI_CODIGO_COMERCIO'])
41
41
  }.to_json
42
42
  end
43
43
  end
data/lib/culqi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Culqi
2
- VERSION = '1.2.3'
2
+ VERSION = '1.2.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: culqi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Augusto Samame