app/controllers/payments_controller.rb
# Only allow a trusted parameter "white list" through.
Only allow a trusted parameter "white list" through.
Only allow a trusted parameter " white list " through .
def payment_params
    params.require(:payment).permit(:merchant_id,
                                    :merchant_password,
                                    :payment_url,
                                    :amount,
                                    :email,
                                    :order_id,
                                    :order_timestamp,
                                    :success_url,
                                    :failed_url,
                                    :error_url)
  end
def payment_params params . require ( :payment ) . permit ( :merchant_id , :merchant_password , :payment_url , :amount , :email , :order_id , :order_timestamp , :success_url , :failed_url , :error_url ) end
Only allow a trusted parameter "white list" through.
Only allow a trusted parameter " white list " through .