app/services/plugins/ecommerce/cart_service.rb in camaleon_ecommerce-1.2.1 vs app/services/plugins/ecommerce/cart_service.rb in camaleon_ecommerce-2.0.0
- old
+ new
@@ -122,15 +122,6 @@
{error: e.message, payment_error: true}
rescue => e
{error: e.message}
end
end
-
- def convert_to_order(status = 'paid')
- Plugins::Ecommerce::Cart.transaction do
- cart.prepare_to_pay
- cart.update_amounts
- cart.mark_paid(status)
- cart.convert_to_order
- end
- end
end