Ricardo Garcia

Fix card payment

......@@ -85,7 +85,7 @@ module ActsAsChargeable
var_payment_method: charge.payment_method.object)
update_conekta_barcode(charge) if options[:conekta_type] == 'oxxo'
if var_payed?
time = Time.strptime payment[:paid_at].to_s, '%s'
time = Time.zone.now
update_columns(var_payment_at: time)
end
charge
......@@ -242,4 +242,4 @@ end
if defined? ActiveRecord::Base
ActiveRecord::Base.send(:include, ActsAsChargeable)
end
\ No newline at end of file
end
......