if gateway_id = SimilarOrderFinder.new(self).find # found one! update this order and don't re-‐charge update_attribute :gateway_id, gateway_id else charge save end end Order.reconcilable.find_each do |order| order.reconcile end
to our order #create endpoint takes > 15 seconds, retry the exact same request on chocolate. • Sometimes production will actually succeed, but not a problem: chocolate de-dupes.