app/controllers/spree/api/payments_controller.rb in solidus_api-1.1.3 vs app/controllers/spree/api/payments_controller.rb in solidus_api-1.1.4

- old
+ new

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