app/controllers/spree/api/payments_controller.rb in solidus_api-1.4.2 vs app/controllers/spree/api/payments_controller.rb in solidus_api-2.0.0.beta1

- old
+ new

@@ -14,10 +14,9 @@ @payment_methods = Spree::PaymentMethod.available respond_with(@payment_method) end def create - @order.validate_payments_attributes(payment_params) @payment = PaymentCreate.new(@order, payment_params).build if @payment.save respond_with(@payment, status: 201, default_template: :show) else invalid_resource!(@payment)