Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -85,7 +85,7 @@ module ActsAsChargeable | ... | @@ -85,7 +85,7 @@ module ActsAsChargeable |
85 | var_payment_method: charge.payment_method.object) | 85 | var_payment_method: charge.payment_method.object) |
86 | update_conekta_barcode(charge) if options[:conekta_type] == 'oxxo' | 86 | update_conekta_barcode(charge) if options[:conekta_type] == 'oxxo' |
87 | if var_payed? | 87 | if var_payed? |
88 | - time = Time.strptime payment[:paid_at].to_s, '%s' | 88 | + time = Time.zone.now |
89 | update_columns(var_payment_at: time) | 89 | update_columns(var_payment_at: time) |
90 | end | 90 | end |
91 | charge | 91 | charge |
... | @@ -242,4 +242,4 @@ end | ... | @@ -242,4 +242,4 @@ end |
242 | 242 | ||
243 | if defined? ActiveRecord::Base | 243 | if defined? ActiveRecord::Base |
244 | ActiveRecord::Base.send(:include, ActsAsChargeable) | 244 | ActiveRecord::Base.send(:include, ActsAsChargeable) |
245 | -end | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
245 | +end | ... | ... |
-
Please register or login to post a comment