culqi 1.2.2 → 1.2.3

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: 38d24504151f28319ad86cd0b5ff8c63f865c031
4
- data.tar.gz: c554a68fdc7f562540430f83ef25d130fe62874d
3
+ metadata.gz: fcb3fc2afe81d463e721f79b88652c78a75255ba
4
+ data.tar.gz: a8d9290394afde57d942e31af77a7700eebc50f4
5
5
  SHA512:
6
- metadata.gz: 2438e59d0b7bf1c633b14248e15eb9fe59af1e2d31970582bb8d9994caf601c40f42ad6ccac4ea2e4a0be93aef30ec9a94c4046506d9855c0750b4bbec927f3c
7
- data.tar.gz: 866186068a87fbb832dfed3e6a086c5d092ae5f9ec0d4859cd9914f141a556a0fadd7973c81805b192e6a93095025bd748a9b1ffb455ffb9f91af23ec70a9c80
6
+ metadata.gz: 49188f7311fda6014fb437a406795ef0ff647783fd00818c3ee36fdf1174387bab2f26be5e3c39a5f71179102525cc70c01043849c5997c15ddcd767ff7324e7
7
+ data.tar.gz: db884fbbb3e28e15f63a63531918a6006641ee1ed9f6c5f91a143cb780388cb34479ef448988c69c0db8efcf9913bf3aed9e7866bdb3b6bd6ed392cd5f1212e3
data/lib/culqi/client.rb CHANGED
@@ -14,6 +14,7 @@ module Culqi
14
14
  end
15
15
 
16
16
  def crear_venta(attrs)
17
+ attrs.merge!(:codigo_comercio => ENV['CULQI_CODIGO_COMERCIO'])
17
18
  sale = Culqi::Sale.new(attrs)
18
19
  request = http_request(sale.payload)
19
20
 
data/lib/culqi/sale.rb CHANGED
@@ -23,11 +23,9 @@ module Culqi
23
23
  attrs.each { |key, value| public_send("#{ key }=", value) }
24
24
  end
25
25
 
26
- #codigo_comercio: ENV['CULQI_CODIGO_COMERCIO'],
27
-
28
26
  def payload
29
27
  {
30
- codigo_comercio: '3zMquUkbF5s8',
28
+ codigo_comercio: ENV['CULQI_CODIGO_COMERCIO'],
31
29
  numero_pedido: numero_pedido,
32
30
  moneda: (moneda || DEFAULTS[:moneda]),
33
31
  monto: monto,
data/lib/culqi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Culqi
2
- VERSION = '1.2.2'
2
+ VERSION = '1.2.3'
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.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Augusto Samame