mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-03-15 12:29:16 +01:00
(feat) update created at date after paid an order
This commit is contained in:
parent
1f7f9be37d
commit
ef3a8641d5
@ -28,6 +28,7 @@ module Payments::PaymentConcern
|
||||
payment_method
|
||||
end
|
||||
order.state = 'paid'
|
||||
order.created_at = DateTime.current
|
||||
if payment_id && payment_type
|
||||
order.payment_gateway_object = PaymentGatewayObject.new(gateway_object_id: payment_id, gateway_object_type: payment_type)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user