catarse_dineromail 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
@@ -16,7 +16,7 @@ module CatarseDineromail
|
|
16
16
|
backer.update_attribute :payment_token, transaction_id
|
17
17
|
data = DineroMailCheckout::CheckoutData.validate({item_name_1: t('dineromail_description', scope: SCOPE),
|
18
18
|
item_quantity_1: 1,
|
19
|
-
item_currency_1: DineroMailCheckout.
|
19
|
+
item_currency_1: DineroMailCheckout.configuration.currency,
|
20
20
|
change_quantity: 0,
|
21
21
|
item_ammount_1: backer.moip_value,
|
22
22
|
buyer_name: backer.user.full_name,
|
@@ -52,11 +52,12 @@ module CatarseDineromail
|
|
52
52
|
|
53
53
|
def notifications
|
54
54
|
notification = params[:Notificacion]
|
55
|
+
Rails.logger.info params.inspect
|
55
56
|
return render(status: 404, nothing: true) if notification.nil?
|
56
57
|
|
57
|
-
xml = Nokogiri::XML(notification)
|
58
|
+
xml = Nokogiri::XML(notification.downcase)
|
58
59
|
ids = []
|
59
|
-
xml.xpath("//
|
60
|
+
xml.xpath("//operacion//id").each {|o| ids << o.children.text}
|
60
61
|
|
61
62
|
c = DineroMailIpn::Client.new(account: ::Configuration[:dineromail_merchant], password: ::Configuration[:dineromail_ipn_password], pais: DineroMailCheckout::Configuration.country_name(::Configuration[:dineromail_country_id].to_i))
|
62
63
|
reports = c.consulta_transacciones(ids).reports
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: catarse_dineromail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|