1
0
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:
Du Peng 2022-10-21 19:10:57 +02:00
parent 1f7f9be37d
commit ef3a8641d5

View File

@ -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